diff options
author | unknown <for.oliver.kirkham@gmail.com> | 2023-02-13 13:51:40 +0000 |
---|---|---|
committer | unknown <for.oliver.kirkham@gmail.com> | 2023-02-13 13:51:40 +0000 |
commit | 56372efa9706898c8646376182b544bc6350c5c7 (patch) | |
tree | 08b609e38c758f6c3431be5df6591d0c34d802bc /NorthstarDLL/mods/compiled/modkeyvalues.cpp | |
parent | 2c2bd9ebb8f832ff117caca16e5cb3bc806666db (diff) | |
download | NorthstarLauncher-56372efa9706898c8646376182b544bc6350c5c7.tar.gz NorthstarLauncher-56372efa9706898c8646376182b544bc6350c5c7.zip |
refactor modloading and implement initial automatic reload code
Diffstat (limited to 'NorthstarDLL/mods/compiled/modkeyvalues.cpp')
-rw-r--r-- | NorthstarDLL/mods/compiled/modkeyvalues.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/NorthstarDLL/mods/compiled/modkeyvalues.cpp b/NorthstarDLL/mods/compiled/modkeyvalues.cpp index 051b193e..df35de64 100644 --- a/NorthstarDLL/mods/compiled/modkeyvalues.cpp +++ b/NorthstarDLL/mods/compiled/modkeyvalues.cpp @@ -25,11 +25,8 @@ void ModManager::TryBuildKeyValues(const char* filename) // copy over patch kv files, and add #bases to new file, last mods' patches should be applied first // note: #include should be identical but it's actually just broken, thanks respawn - for (Mod& mod : GetMods() | std::views::reverse) + for (Mod& mod : GetMods() | ModManager::FilterEnabled | std::views::reverse) { - if (mod.m_bEnabled) - continue; - size_t fileHash = STR_HASH(normalisedPath); auto modKv = mod.KeyValues.find(fileHash); if (modKv != mod.KeyValues.end()) |