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(); diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index c1475a7..0bbc3c0 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #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..e4924bf 100644 --- a/src/factories/BlobFactory.cpp +++ b/src/factories/BlobFactory.cpp @@ -1,4 +1,5 @@ #include "BlobFactory.h" +#include #include "utils/MIODecoder.h" namespace fs = std::filesystem; diff --git a/src/factories/debug/MIO0Factory.cpp b/src/factories/debug/MIO0Factory.cpp index dd73f12..7ebf2a2 100644 --- a/src/factories/debug/MIO0Factory.cpp +++ b/src/factories/debug/MIO0Factory.cpp @@ -1,4 +1,5 @@ #include "MIO0Factory.h" +#include #include "utils/MIODecoder.h" namespace fs = std::filesystem;