From 56372efa9706898c8646376182b544bc6350c5c7 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Feb 2023 13:51:40 +0000 Subject: refactor modloading and implement initial automatic reload code --- NorthstarDLL/mods/compiled/modkeyvalues.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'NorthstarDLL/mods/compiled/modkeyvalues.cpp') 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()) -- cgit v1.2.3