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.h | |
parent | f6915dc331685574289e7b45e5d2d36b530f50f3 (diff) | |
download | NorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.tar.gz NorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.zip |
Format project
Diffstat (limited to 'primedev/core/hooks.h')
-rw-r--r-- | primedev/core/hooks.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/primedev/core/hooks.h b/primedev/core/hooks.h index 023b7411..26d9483c 100644 --- a/primedev/core/hooks.h +++ b/primedev/core/hooks.h @@ -140,7 +140,9 @@ public: __autohook() = delete; __autohook(__fileAutohook* autohook, const char* funcName, LPVOID absoluteAddress, LPVOID* orig, LPVOID func) - : pHookFunc(func), ppOrigFunc(orig), iAbsoluteAddress(absoluteAddress) + : pHookFunc(func) + , ppOrigFunc(orig) + , iAbsoluteAddress(absoluteAddress) { iAddressResolutionMode = ABSOLUTE_ADDR; @@ -152,7 +154,8 @@ public: } __autohook(__fileAutohook* autohook, const char* funcName, const char* addrString, LPVOID* orig, LPVOID func) - : pHookFunc(func), ppOrigFunc(orig) + : pHookFunc(func) + , ppOrigFunc(orig) { iAddressResolutionMode = OFFSET_STRING; @@ -168,7 +171,8 @@ public: } __autohook(__fileAutohook* autohook, const char* funcName, const char* moduleName, const char* procName, LPVOID* orig, LPVOID func) - : pHookFunc(func), ppOrigFunc(orig) + : pHookFunc(func) + , ppOrigFunc(orig) { iAddressResolutionMode = PROCADDRESS; |