aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-11 14:53:04 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-11 14:53:04 +0100
commitc9771185a73ffb324887a85f6d2185bd14da374d (patch)
tree7afe536c0a2a061ebeb13b9275739cd76e104db4 /NorthstarDedicatedTest/modmanager.cpp
parent035c1b1dceeaae7c17798c60f37a229fa5a0d83b (diff)
downloadNorthstarLauncher-c9771185a73ffb324887a85f6d2185bd14da374d.tar.gz
NorthstarLauncher-c9771185a73ffb324887a85f6d2185bd14da374d.zip
replace files in ReadFromCache
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index dd8e55cd..88aea71e 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -588,7 +588,8 @@ void ModManager::UnloadMods()
std::string ModManager::NormaliseModFilePath(const fs::path path)
{
std::string str = path.lexically_normal().string();
- // go to lowercase
+
+ // force to lowercase
for (char& c : str)
if (c <= 'Z' && c >= 'A')
c = c - ('Z' - 'z');
@@ -598,7 +599,7 @@ std::string ModManager::NormaliseModFilePath(const fs::path path)
void ModManager::CompileAssetsForFile(const char* filename)
{
- size_t fileHash = STR_HASH(fs::path(filename).lexically_normal().string());
+ size_t fileHash = STR_HASH(NormaliseModFilePath(fs::path(filename)));
if (fileHash == m_hScriptsRsonHash)
BuildScriptsRson();