diff options
| author | Lywx <kiritodev01@gmail.com> | 2023-09-23 19:42:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-23 19:42:58 -0600 |
| commit | 5d07dcb92553deff0dc8de0ff7c5822af131f245 (patch) | |
| tree | 6b5369ed119d231e76c3a8cc3f5e9c23f7c29443 /src/Companion.cpp | |
| parent | 42314c93dda42af1daee702a8adce12abccecc9e (diff) | |
| parent | 8ad502affcf89eb07929d167cdb8a9b0bc1e0b4d (diff) | |
Merge pull request #2 from inspectredc/build-fix-proper
Fix Linux and Windows Build Errors
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index fa557fa..5d7607a 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -70,7 +70,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 +84,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(); |
