diff options
| author | briaguya <70942617+briaguya0@users.noreply.github.com> | 2026-07-25 22:30:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 22:30:20 -0400 |
| commit | 65eb11cb56ec5425cdbab7a7536b168a82e4b815 (patch) | |
| tree | d7bdb76b90b2dce689991f2a9c7c758d9c893875 /src/Companion.cpp | |
| parent | 4cae44160693e1beb562e39dc301bd42278be1f9 (diff) | |
Fix three Windows-only defects in OoT extraction (#234)
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 74d6ec1..bb58dcf 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -536,7 +536,7 @@ void Companion::ParseCurrentFileConfig(YAML::Node node, std::atomic<size_t>& ass auto externalFile = externalFiles[i]; if (externalFile.size() == 0) { this->gCurrentExternalFiles.push_back( - (this->gSourceDirectory / externalFile.as<std::string>()).string()); + (this->gSourceDirectory / externalFile.as<std::string>()).generic_string()); } else { SPDLOG_INFO("External File size {}", externalFile.size()); throw std::runtime_error( @@ -544,9 +544,10 @@ void Companion::ParseCurrentFileConfig(YAML::Node node, std::atomic<size_t>& ass " - <external_files>\n\ne.g.:\nexternal_files:\n - actors/actor1.yaml"); } - std::string externalFileName = (this->gSourceDirectory / externalFile.as<std::string>()).string(); - if (StringHelper::StartsWith(std::filesystem::relative(externalFileName, this->gAssetPath).string(), - "../")) { + std::string externalFileName = + (this->gSourceDirectory / externalFile.as<std::string>()).generic_string(); + if (StringHelper::StartsWith( + std::filesystem::relative(externalFileName, this->gAssetPath).generic_string(), "../")) { throw std::runtime_error("External File " + externalFileName + " Not In Asset Directory " + this->gAssetPath); } else if (std::filesystem::relative(externalFileName, this->gAssetPath).string() == "") { |
