aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/client/clientvideooverrides.cpp
diff options
context:
space:
mode:
authorunknown <for.oliver.kirkham@gmail.com>2023-02-11 03:08:43 +0000
committerBobTheBob <for.oliver.kirkham@gmail.com>2023-02-22 22:18:56 +0000
commit07e386b12cb1a92c99cd5e3034cb4f94f28fb3eb (patch)
treee1c05c9bb83b8860daa2dd18f96a76bae6c5bff9 /NorthstarDLL/client/clientvideooverrides.cpp
parente1c781f317e1d798eff5d34d87f9b5ffa3e538f0 (diff)
downloadNorthstarLauncher-07e386b12cb1a92c99cd5e3034cb4f94f28fb3eb.tar.gz
NorthstarLauncher-07e386b12cb1a92c99cd5e3034cb4f94f28fb3eb.zip
commit for merge
Diffstat (limited to 'NorthstarDLL/client/clientvideooverrides.cpp')
-rw-r--r--NorthstarDLL/client/clientvideooverrides.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/NorthstarDLL/client/clientvideooverrides.cpp b/NorthstarDLL/client/clientvideooverrides.cpp
index d8aa2754..d24dfa14 100644
--- a/NorthstarDLL/client/clientvideooverrides.cpp
+++ b/NorthstarDLL/client/clientvideooverrides.cpp
@@ -11,20 +11,20 @@ void*, __fastcall, (const char* path, uint32_t flags))
spdlog::info("BinkOpen {}", filename);
// figure out which mod is handling the bink
- Mod* fileOwner = nullptr;
- for (Mod& mod : g_pModManager->m_LoadedMods)
+ Mod* pFileOwner = nullptr;
+ for (Mod& mod : g_pModManager->GetMods())
{
if (!mod.m_bEnabled)
continue;
if (std::find(mod.BinkVideos.begin(), mod.BinkVideos.end(), filename) != mod.BinkVideos.end())
- fileOwner = &mod;
+ pFileOwner = &mod;
}
- if (fileOwner)
+ if (pFileOwner)
{
// create new path
- fs::path binkPath(fileOwner->m_ModDirectory / "media" / filename);
+ fs::path binkPath(pFileOwner->m_ModDirectory / "media" / filename);
return BinkOpen(binkPath.string().c_str(), flags);
}
else