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
committerunknown <for.oliver.kirkham@gmail.com>2023-02-11 03:08:43 +0000
commitc333ba84bee44549bb15675f353e04d22fb9f53c (patch)
treef62b52a47556e531ac43fad99149b743b96537a0 /NorthstarDLL/client/clientvideooverrides.cpp
parenta4e798b2778a8606f56cc78ce11a5889cf5a8b5a (diff)
downloadNorthstarLauncher-c333ba84bee44549bb15675f353e04d22fb9f53c.tar.gz
NorthstarLauncher-c333ba84bee44549bb15675f353e04d22fb9f53c.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 1a5924c7..ab78b943 100644
--- a/NorthstarDLL/client/clientvideooverrides.cpp
+++ b/NorthstarDLL/client/clientvideooverrides.cpp
@@ -12,20 +12,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