diff options
Diffstat (limited to 'src/plugins/HookSystem.hpp')
| -rw-r--r-- | src/plugins/HookSystem.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/plugins/HookSystem.hpp b/src/plugins/HookSystem.hpp index 8714ac32..f0a5a11d 100644 --- a/src/plugins/HookSystem.hpp +++ b/src/plugins/HookSystem.hpp @@ -4,7 +4,8 @@ #include <vector> #include <memory> -#define HANDLE void* +#define HANDLE void* +#define HOOK_TRAMPOLINE_MAX_SIZE 64 class CFunctionHook { public: @@ -60,6 +61,18 @@ class CHookSystem { private: std::vector<std::unique_ptr<CFunctionHook>> m_vHooks; + + uint64_t getAddressForTrampo(); + + struct SAllocatedPage { + uint64_t addr = 0; + uint64_t len = 0; + uint64_t used = 0; + }; + + std::vector<SAllocatedPage> pages; + + friend class CFunctionHook; }; inline std::unique_ptr<CHookSystem> g_pFunctionHookSystem;
\ No newline at end of file |
