mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed otrs on windows
This commit is contained in:
+6
-3
@@ -83,11 +83,14 @@ void Companion::Process() {
|
||||
}
|
||||
|
||||
auto buffer = write.ToVector();
|
||||
auto output = entry.path().stem() / asset->first.as<std::string>();
|
||||
wrapper.CreateFile(output.string(), buffer);
|
||||
auto output = (entry.path().stem() / asset->first.as<std::string>()).string();
|
||||
|
||||
std::replace(output.begin(), output.end(), '\\', '/');
|
||||
|
||||
wrapper.CreateFile(output, buffer);
|
||||
|
||||
if(type != "TEXTURE") {
|
||||
std::string dpath = "debug/" + output.string();
|
||||
std::string dpath = "debug/" + output;
|
||||
if(!fs::exists(fs::path(dpath).parent_path())){
|
||||
fs::create_directories(fs::path(dpath).parent_path());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user