diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-18 09:37:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 09:37:03 +0000 |
commit | 92f77b231ac324cc1326bef31251fc6b86df1f3b (patch) | |
tree | 1d5a2843af2db31305a96c194e8b21280dccd340 /NorthstarDedicatedTest/clientvideooverrides.cpp | |
parent | 50e69bde548c5a1af3385f0eff6aa14c088c21c5 (diff) | |
download | NorthstarLauncher-92f77b231ac324cc1326bef31251fc6b86df1f3b.tar.gz NorthstarLauncher-92f77b231ac324cc1326bef31251fc6b86df1f3b.zip |
refactor dll load callbacks to lower number of dedicated.h includes (#109)
Diffstat (limited to 'NorthstarDedicatedTest/clientvideooverrides.cpp')
-rw-r--r-- | NorthstarDedicatedTest/clientvideooverrides.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/clientvideooverrides.cpp b/NorthstarDedicatedTest/clientvideooverrides.cpp index 3a63c181..0b5ff5f5 100644 --- a/NorthstarDedicatedTest/clientvideooverrides.cpp +++ b/NorthstarDedicatedTest/clientvideooverrides.cpp @@ -1,7 +1,6 @@ #include "pch.h" #include "clientvideooverrides.h" #include "modmanager.h" -#include "dedicated.h" typedef void*(*BinkOpenType)(const char* path, uint32_t flags); BinkOpenType BinkOpen; @@ -34,9 +33,6 @@ void* BinkOpenHook(const char* path, uint32_t flags) void InitialiseClientVideoOverrides(HMODULE baseAddress) { - if (IsDedicated()) - return; - HookEnabler hook; ENABLER_CREATEHOOK(hook, GetProcAddress(GetModuleHandleA("bink2w64.dll"), "BinkOpen"), &BinkOpenHook, reinterpret_cast<LPVOID*>(&BinkOpen)); }
\ No newline at end of file |