diff options
| -rw-r--r-- | src/Companion.cpp | 4 | ||||
| -rw-r--r-- | src/audio/AudioManager.cpp | 2 | ||||
| -rw-r--r-- | src/factories/BlobFactory.cpp | 1 | ||||
| -rw-r--r-- | src/factories/RawFactory.h | 1 | ||||
| -rw-r--r-- | src/factories/debug/MIO0Factory.cpp | 1 |
5 files changed, 7 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(); diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index c1475a7..739800c 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -5,6 +5,8 @@ #include <fstream> #include <iostream> #include <filesystem> +#include <cassert> +#include <cstring> #include "hj/pyutils.h" #include "binarytools/BinaryReader.h" #include "hj/zip.h" diff --git a/src/factories/BlobFactory.cpp b/src/factories/BlobFactory.cpp index e020079..cc66463 100644 --- a/src/factories/BlobFactory.cpp +++ b/src/factories/BlobFactory.cpp @@ -1,4 +1,5 @@ #include "BlobFactory.h" +#include <cstring> #include "utils/MIODecoder.h" namespace fs = std::filesystem; diff --git a/src/factories/RawFactory.h b/src/factories/RawFactory.h index 5019ad6..9a23d71 100644 --- a/src/factories/RawFactory.h +++ b/src/factories/RawFactory.h @@ -3,6 +3,7 @@ #include "ResourceType.h" #include <string> #include <vector> +#include <filesystem> #include <binarytools/BinaryWriter.h> #include <yaml-cpp/yaml.h> diff --git a/src/factories/debug/MIO0Factory.cpp b/src/factories/debug/MIO0Factory.cpp index dd73f12..e5858ed 100644 --- a/src/factories/debug/MIO0Factory.cpp +++ b/src/factories/debug/MIO0Factory.cpp @@ -1,4 +1,5 @@ #include "MIO0Factory.h" +#include <cstring> #include "utils/MIODecoder.h" namespace fs = std::filesystem; |
