aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/client/clientvideooverrides.cpp
diff options
context:
space:
mode:
authorunknown <for.oliver.kirkham@gmail.com>2023-02-13 13:51:40 +0000
committerBobTheBob <for.oliver.kirkham@gmail.com>2023-02-22 22:18:56 +0000
commit93871f36c2e36996d880aa68d6445c7d3802c100 (patch)
treefb1dfd1555eb9b4bc061394cd78856667d48fe4a /NorthstarDLL/client/clientvideooverrides.cpp
parent07e386b12cb1a92c99cd5e3034cb4f94f28fb3eb (diff)
downloadNorthstarLauncher-93871f36c2e36996d880aa68d6445c7d3802c100.tar.gz
NorthstarLauncher-93871f36c2e36996d880aa68d6445c7d3802c100.zip
refactor modloading and implement initial automatic reload code
Diffstat (limited to 'NorthstarDLL/client/clientvideooverrides.cpp')
-rw-r--r--NorthstarDLL/client/clientvideooverrides.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/NorthstarDLL/client/clientvideooverrides.cpp b/NorthstarDLL/client/clientvideooverrides.cpp
index d24dfa14..a6178cfc 100644
--- a/NorthstarDLL/client/clientvideooverrides.cpp
+++ b/NorthstarDLL/client/clientvideooverrides.cpp
@@ -12,11 +12,8 @@ void*, __fastcall, (const char* path, uint32_t flags))
// figure out which mod is handling the bink
Mod* pFileOwner = nullptr;
- for (Mod& mod : g_pModManager->GetMods())
+ for (Mod& mod : g_pModManager->GetMods() | ModManager::FilterEnabled)
{
- if (!mod.m_bEnabled)
- continue;
-
if (std::find(mod.BinkVideos.begin(), mod.BinkVideos.end(), filename) != mod.BinkVideos.end())
pFileOwner = &mod;
}