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