fix building windows

This commit is contained in:
inspectredc
2023-09-23 23:31:37 +01:00
parent 2508fc7776
commit 185db5c050
4 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -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();