diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 01:54:37 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 01:54:37 +0100 |
commit | 2dba51a6a281573ea40cc52c80d10155387d4720 (patch) | |
tree | d6040ec27d365b0facc18f6f1b761ff5c0b403db /NorthstarDedicatedTest/keyvalues.cpp | |
parent | 5644c1aaabb9487ef2a4c3e5110c8a21bf7b6a59 (diff) | |
download | NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.tar.gz NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.zip |
normalise mod fs paths to be lowercase
Diffstat (limited to 'NorthstarDedicatedTest/keyvalues.cpp')
-rw-r--r-- | NorthstarDedicatedTest/keyvalues.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/keyvalues.cpp b/NorthstarDedicatedTest/keyvalues.cpp index a2c7281a..0d6ae964 100644 --- a/NorthstarDedicatedTest/keyvalues.cpp +++ b/NorthstarDedicatedTest/keyvalues.cpp @@ -40,7 +40,7 @@ void ModManager::TryBuildKeyValues(const char* filename) { spdlog::info("Building KeyValues for file {}", filename); - std::string normalisedPath = fs::path(filename).lexically_normal().string(); + std::string normalisedPath = g_ModManager->NormaliseModFilePath(fs::path(filename)); fs::path compiledPath = GetCompiledAssetsPath() / filename; fs::path compiledDir = compiledPath.parent_path(); fs::create_directories(compiledDir); @@ -87,7 +87,7 @@ void ModManager::TryBuildKeyValues(const char* filename) newKvs += "\"\n"; // load original file, so we can parse out the name of the root obj (e.g. WeaponData for weapons) - std::string originalFile = ReadVPKOriginalFile(filename); + std::string originalFile = R2FS::ReadVPKOriginalFile(filename); if (!originalFile.length()) { |