summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index fa557fa..414b9c0 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -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();