aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/hooks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/core/hooks.cpp')
-rw-r--r--primedev/core/hooks.cpp14
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)
{