diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-09 20:23:16 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-09 20:23:16 +0100 |
commit | 5ce8343bcced9e92ab2b3c1b80382cffa0281629 (patch) | |
tree | 95ce2dbe8dc976cab987d76f8e964a2efc6c23fd /NorthstarDedicatedTest/sourceinterface.cpp | |
parent | 180470cf75f40bed9c24b22d0afd68871d40c9f3 (diff) | |
download | NorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.tar.gz NorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.zip |
use lambdas for dll load callbacks so intellisense shits itself less
Diffstat (limited to 'NorthstarDedicatedTest/sourceinterface.cpp')
-rw-r--r-- | NorthstarDedicatedTest/sourceinterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/sourceinterface.cpp b/NorthstarDedicatedTest/sourceinterface.cpp index e80a067d..2ed3f592 100644 --- a/NorthstarDedicatedTest/sourceinterface.cpp +++ b/NorthstarDedicatedTest/sourceinterface.cpp @@ -36,7 +36,7 @@ void* EngineCreateInterfaceHook(const char* pName, int* pReturnCode) return ret; } -ON_DLL_LOAD("client.dll", ClientInterface, (HMODULE baseAddress) +ON_DLL_LOAD("client.dll", ClientInterface, [](HMODULE baseAddress) { HookEnabler hook; ENABLER_CREATEHOOK( @@ -46,7 +46,7 @@ ON_DLL_LOAD("client.dll", ClientInterface, (HMODULE baseAddress) reinterpret_cast<LPVOID*>(&ClientCreateInterfaceOriginal)); }) -ON_DLL_LOAD("server.dll", ServerInterface, (HMODULE baseAddress) +ON_DLL_LOAD("server.dll", ServerInterface, [](HMODULE baseAddress) { HookEnabler hook; ENABLER_CREATEHOOK( @@ -56,7 +56,7 @@ ON_DLL_LOAD("server.dll", ServerInterface, (HMODULE baseAddress) reinterpret_cast<LPVOID*>(&ServerCreateInterfaceOriginal)); }) -ON_DLL_LOAD("engine.dll", EngineInterface, (HMODULE baseAddress) +ON_DLL_LOAD("engine.dll", EngineInterface, [](HMODULE baseAddress) { HookEnabler hook; ENABLER_CREATEHOOK( |