diff options
| author | inspectredc <inspectredc@gmail.com> | 2023-09-23 23:31:37 +0100 |
|---|---|---|
| committer | inspectredc <inspectredc@gmail.com> | 2023-09-23 23:31:37 +0100 |
| commit | 185db5c0509d7c5fee5ef6585aea27943b3f489f (patch) | |
| tree | 089fbe8cd4dfc3c246303f2d894af78f7dd102d8 /src/Companion.cpp | |
| parent | 2508fc777677dde9ac7f5d7e23e8c4d5dfdd185c (diff) | |
fix building windows
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <iostream> #include <filesystem> +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<std::string>(); @@ -84,7 +86,7 @@ void Companion::Process() { auto buffer = write.ToVector(); auto output = entry.path().stem() / asset->first.as<std::string>(); - wrapper.CreateFile(output, buffer); + wrapper.CreateFile(output.string(), buffer); if(type != "TEXTURE") { std::string dpath = "debug/" + output.string(); |
