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(); @@ -84,7 +84,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..739800c 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -5,6 +5,8 @@ #include #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..cc66463 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/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 #include +#include #include #include 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 #include "utils/MIODecoder.h" namespace fs = std::filesystem;