diff options
author | Northstar <northstar@northstar.tf> | 2022-02-03 22:09:08 -0300 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-03 22:09:08 -0300 |
commit | 75bf194b2fca06de805a7bc025c6dd8379250fa5 (patch) | |
tree | c9327ac7921ae80bb2d91381bb7db11b47ca2403 /NorthstarDedicatedTest/sourceinterface.cpp | |
parent | e9f93ba2e8b9df280aed20131a1606d731d2dbbe (diff) | |
download | NorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.tar.gz NorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.zip |
Format project
Diffstat (limited to 'NorthstarDedicatedTest/sourceinterface.cpp')
-rw-r--r-- | NorthstarDedicatedTest/sourceinterface.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/NorthstarDedicatedTest/sourceinterface.cpp b/NorthstarDedicatedTest/sourceinterface.cpp index bdcc4a3c..427bee63 100644 --- a/NorthstarDedicatedTest/sourceinterface.cpp +++ b/NorthstarDedicatedTest/sourceinterface.cpp @@ -45,19 +45,25 @@ void* EngineCreateInterfaceHook(const char* pName, int* pReturnCode) void HookClientCreateInterface(HMODULE baseAddress) { HookEnabler hook; - ENABLER_CREATEHOOK(hook, GetProcAddress(baseAddress, "CreateInterface"), &ClientCreateInterfaceHook, reinterpret_cast<LPVOID*>(&clientCreateInterfaceOriginal)); + ENABLER_CREATEHOOK( + hook, GetProcAddress(baseAddress, "CreateInterface"), &ClientCreateInterfaceHook, + reinterpret_cast<LPVOID*>(&clientCreateInterfaceOriginal)); } void HookServerCreateInterface(HMODULE baseAddress) { HookEnabler hook; - ENABLER_CREATEHOOK(hook, GetProcAddress(baseAddress, "CreateInterface"), &ServerCreateInterfaceHook, reinterpret_cast<LPVOID*>(&serverCreateInterfaceOriginal)); + ENABLER_CREATEHOOK( + hook, GetProcAddress(baseAddress, "CreateInterface"), &ServerCreateInterfaceHook, + reinterpret_cast<LPVOID*>(&serverCreateInterfaceOriginal)); } void HookEngineCreateInterface(HMODULE baseAddress) { HookEnabler hook; - ENABLER_CREATEHOOK(hook, GetProcAddress(baseAddress, "CreateInterface"), &EngineCreateInterfaceHook, reinterpret_cast<LPVOID*>(&engineCreateInterfaceOriginal)); + ENABLER_CREATEHOOK( + hook, GetProcAddress(baseAddress, "CreateInterface"), &EngineCreateInterfaceHook, + reinterpret_cast<LPVOID*>(&engineCreateInterfaceOriginal)); } void InitialiseInterfaceCreationHooks() @@ -65,6 +71,6 @@ void InitialiseInterfaceCreationHooks() AddDllLoadCallback("client.dll", HookClientCreateInterface); // not used atm - //AddDllLoadCallback("server.dll", HookServerCreateInterface); - //AddDllLoadCallback("engine.dll", HookEngineCreateInterface); + // AddDllLoadCallback("server.dll", HookServerCreateInterface); + // AddDllLoadCallback("engine.dll", HookEngineCreateInterface); }
\ No newline at end of file |