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/rpakfilesystem.cpp | |
parent | 5644c1aaabb9487ef2a4c3e5110c8a21bf7b6a59 (diff) | |
download | NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.tar.gz NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.zip |
normalise mod fs paths to be lowercase
Diffstat (limited to 'NorthstarDedicatedTest/rpakfilesystem.cpp')
-rw-r--r-- | NorthstarDedicatedTest/rpakfilesystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/rpakfilesystem.cpp b/NorthstarDedicatedTest/rpakfilesystem.cpp index c9f01b89..03df9917 100644 --- a/NorthstarDedicatedTest/rpakfilesystem.cpp +++ b/NorthstarDedicatedTest/rpakfilesystem.cpp @@ -188,7 +188,8 @@ void* ReadFullFileFromDiskHook(const char* requestedPath, void* a2) spdlog::info("LoadStreamBsp: {}", filename.string()); // resolve modded stbsp path so we can load mod stbsps - auto modFile = g_ModManager->m_modFiles.find(fs::path("maps" / filename).lexically_normal().string()); + + auto modFile = g_ModManager->m_modFiles.find(g_ModManager->NormaliseModFilePath(fs::path("maps" / filename))); if (modFile != g_ModManager->m_modFiles.end()) { // need to allocate a new string for this |