aboutsummaryrefslogtreecommitdiff
path: root/primedev/core
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/core')
-rw-r--r--primedev/core/hooks.cpp14
-rw-r--r--primedev/core/hooks.h10
-rw-r--r--primedev/core/math/vector.h42
3 files changed, 55 insertions, 11 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)
{
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;
diff --git a/primedev/core/math/vector.h b/primedev/core/math/vector.h
index 0face732..ea1de65e 100644
--- a/primedev/core/math/vector.h
+++ b/primedev/core/math/vector.h
@@ -13,9 +13,24 @@ class Vector3
public:
float x, y, z;
- Vector3(float _x, float _y, float _z) : x(_x), y(_y), z(_z) {}
- Vector3(float _f) : x(_f), y(_f), z(_f) {}
- Vector3() : x(0.0f), y(0.0f), z(0.0f) {}
+ Vector3(float _x, float _y, float _z)
+ : x(_x)
+ , y(_y)
+ , z(_z)
+ {
+ }
+ Vector3(float _f)
+ : x(_f)
+ , y(_f)
+ , z(_f)
+ {
+ }
+ Vector3()
+ : x(0.0f)
+ , y(0.0f)
+ , z(0.0f)
+ {
+ }
inline bool IsValid() { return IsFinite(x) && IsFinite(y) && IsFinite(z); }
@@ -302,9 +317,24 @@ public:
float y;
float z;
- QAngle(float _x, float _y, float _z) : x(_x), y(_y), z(_z) {}
- QAngle(float _f) : x(_f), y(_f), z(_f) {}
- QAngle() : x(0.0f), y(0.0f), z(0.0f) {}
+ QAngle(float _x, float _y, float _z)
+ : x(_x)
+ , y(_y)
+ , z(_z)
+ {
+ }
+ QAngle(float _f)
+ : x(_f)
+ , y(_f)
+ , z(_f)
+ {
+ }
+ QAngle()
+ : x(0.0f)
+ , y(0.0f)
+ , z(0.0f)
+ {
+ }
Vector3 GetNormal() const;