From 185db5c0509d7c5fee5ef6585aea27943b3f489f Mon Sep 17 00:00:00 2001 From: inspectredc Date: Sat, 23 Sep 2023 23:31:37 +0100 Subject: fix building windows --- src/Companion.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index fa557fa..414b9c0 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -18,6 +18,8 @@ #include #include +using string_type = _STD wstring; + namespace fs = std::filesystem; void Companion::Init() { @@ -70,7 +72,7 @@ void Companion::Process() { for (const auto & entry : fs::directory_iterator(path)){ std::cout << "Processing " << entry.path() << '\n'; - YAML::Node root = YAML::LoadFile(entry.path()); + YAML::Node root = YAML::LoadFile(entry.path().string()); for(auto asset = root.begin(); asset != root.end(); ++asset){ auto type = asset->second["type"].as(); @@ -84,7 +86,7 @@ void Companion::Process() { auto buffer = write.ToVector(); auto output = entry.path().stem() / asset->first.as(); - wrapper.CreateFile(output, buffer); + wrapper.CreateFile(output.string(), buffer); if(type != "TEXTURE") { std::string dpath = "debug/" + output.string(); -- cgit v1.2.3 From 3b9fe53e8ccdf307744651166c1610af4a2543e4 Mon Sep 17 00:00:00 2001 From: inspectredc Date: Sat, 23 Sep 2023 23:34:33 +0100 Subject: oops remove random line --- src/Companion.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index 414b9c0..5d7607a 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -18,8 +18,6 @@ #include #include -using string_type = _STD wstring; - namespace fs = std::filesystem; void Companion::Init() { -- cgit v1.2.3