aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/clientvideooverrides.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/clientvideooverrides.cpp')
-rw-r--r--NorthstarDedicatedTest/clientvideooverrides.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/clientvideooverrides.cpp b/NorthstarDedicatedTest/clientvideooverrides.cpp
index 0b5ff5f5..d5674f51 100644
--- a/NorthstarDedicatedTest/clientvideooverrides.cpp
+++ b/NorthstarDedicatedTest/clientvideooverrides.cpp
@@ -2,7 +2,7 @@
#include "clientvideooverrides.h"
#include "modmanager.h"
-typedef void*(*BinkOpenType)(const char* path, uint32_t flags);
+typedef void* (*BinkOpenType)(const char* path, uint32_t flags);
BinkOpenType BinkOpen;
void* BinkOpenHook(const char* path, uint32_t flags)
@@ -16,7 +16,7 @@ void* BinkOpenHook(const char* path, uint32_t flags)
{
if (!mod.Enabled)
continue;
-
+
if (std::find(mod.BinkVideos.begin(), mod.BinkVideos.end(), filename) != mod.BinkVideos.end())
fileOwner = &mod;
}
@@ -34,5 +34,6 @@ void* BinkOpenHook(const char* path, uint32_t flags)
void InitialiseClientVideoOverrides(HMODULE baseAddress)
{
HookEnabler hook;
- ENABLER_CREATEHOOK(hook, GetProcAddress(GetModuleHandleA("bink2w64.dll"), "BinkOpen"), &BinkOpenHook, reinterpret_cast<LPVOID*>(&BinkOpen));
+ ENABLER_CREATEHOOK(
+ hook, GetProcAddress(GetModuleHandleA("bink2w64.dll"), "BinkOpen"), &BinkOpenHook, reinterpret_cast<LPVOID*>(&BinkOpen));
} \ No newline at end of file