mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Merge pull request #2 from inspectredc/build-fix-proper
Fix Linux and Windows Build Errors
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
#include "BlobFactory.h"
|
||||
#include <cstring>
|
||||
#include "utils/MIODecoder.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "ResourceType.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <filesystem>
|
||||
#include <binarytools/BinaryWriter.h>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "MIO0Factory.h"
|
||||
#include <cstring>
|
||||
#include "utils/MIODecoder.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
Reference in New Issue
Block a user