diff options
author | Northstar <northstar@northstar.tf> | 2024-08-26 15:18:56 +0200 |
---|---|---|
committer | Northstar <northstar@northstar.tf> | 2024-08-26 15:18:56 +0200 |
commit | 6e9792f3651d1e0c7045c5d67312c10f91ce6962 (patch) | |
tree | 728dc0d4ac2d1c0d8f5a8490e8c45ea69494f927 /primedev/core/hooks.cpp | |
parent | f6915dc331685574289e7b45e5d2d36b530f50f3 (diff) | |
download | NorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.tar.gz NorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.zip |
Format project
Diffstat (limited to 'primedev/core/hooks.cpp')
-rw-r--r-- | primedev/core/hooks.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/primedev/core/hooks.cpp b/primedev/core/hooks.cpp index d8fad409..7ce98331 100644 --- a/primedev/core/hooks.cpp +++ b/primedev/core/hooks.cpp @@ -85,9 +85,19 @@ void __fileAutohook::DispatchForModule(const char* pModuleName) hook->Dispatch(); } -ManualHook::ManualHook(const char* funcName, LPVOID func) : svFuncName(funcName), pHookFunc(func), ppOrigFunc(nullptr) {} +ManualHook::ManualHook(const char* funcName, LPVOID func) + : svFuncName(funcName) + , pHookFunc(func) + , ppOrigFunc(nullptr) +{ +} -ManualHook::ManualHook(const char* funcName, LPVOID* orig, LPVOID func) : svFuncName(funcName), pHookFunc(func), ppOrigFunc(orig) {} +ManualHook::ManualHook(const char* funcName, LPVOID* orig, LPVOID func) + : svFuncName(funcName) + , pHookFunc(func) + , ppOrigFunc(orig) +{ +} bool ManualHook::Dispatch(LPVOID addr, LPVOID* orig) { |