mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
fix building windows
This commit is contained in:
+4
-2
@@ -18,6 +18,8 @@
|
||||
#include <iostream>
|
||||
#include <filesystem>
|
||||
|
||||
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<std::string>();
|
||||
|
||||
@@ -84,7 +86,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,7 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <filesystem>
|
||||
#include <cassert>
|
||||
#include "hj/pyutils.h"
|
||||
#include "binarytools/BinaryReader.h"
|
||||
#include "hj/zip.h"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "BlobFactory.h"
|
||||
#include <filesystem>
|
||||
#include "utils/MIODecoder.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "MIO0Factory.h"
|
||||
#include <filesystem>
|
||||
#include "utils/MIODecoder.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
Reference in New Issue
Block a user