fix windows build

This commit is contained in:
MihailRis
2025-02-04 13:32:50 +03:00
parent 8a12ff5879
commit 94bae83de6
4 changed files with 10 additions and 12 deletions
+3 -3
View File
@@ -761,7 +761,7 @@ void ContentLoader::load() {
auto folder = pack->folder;
// Load world generators
io::path generatorsDir = folder / fs::u8path("generators");
io::path generatorsDir = folder / "generators";
foreach_file(generatorsDir, [this](const io::path& file) {
std::string name = file.stem();
auto [packid, full, filename] = create_unit_id(pack->id, name);
@@ -816,7 +816,7 @@ void ContentLoader::load() {
}
// Load skeletons
io::path skeletonsDir = folder / fs::u8path("skeletons");
io::path skeletonsDir = folder / "skeletons";
foreach_file(skeletonsDir, [this](const io::path& file) {
std::string name = pack->id + ":" + file.stem();
std::string text = io::read_string(file);
@@ -875,7 +875,7 @@ void ContentLoader::loadScripts(Content& content) {
);
}
// Load entity components
io::path componentsDir = folder / fs::u8path("scripts/components");
io::path componentsDir = folder / "scripts/components";
foreach_file(componentsDir, [&pack](const io::path& file) {
auto name = pack.id + ":" + file.stem();
scripting::load_entity_component(