Merge pull request #2 from inspectredc/build-fix-proper

Fix Linux and Windows Build Errors
This commit is contained in:
Lywx
2023-09-23 19:42:58 -06:00
committed by GitHub
5 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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();
+2
View File
@@ -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"
+1
View File
@@ -1,4 +1,5 @@
#include "BlobFactory.h"
#include <cstring>
#include "utils/MIODecoder.h"
namespace fs = std::filesystem;
+1
View File
@@ -3,6 +3,7 @@
#include "ResourceType.h"
#include <string>
#include <vector>
#include <filesystem>
#include <binarytools/BinaryWriter.h>
#include <yaml-cpp/yaml.h>
+1
View File
@@ -1,4 +1,5 @@
#include "MIO0Factory.h"
#include <cstring>
#include "utils/MIODecoder.h"
namespace fs = std::filesystem;