HookInfo@ Dev::Hook(uint64 ptr, int padding, const string&in func, int pushRegisters = 0, FreeRegister freeRegister = FreeRegister::Rax)
Hooks directly into game code. You should unhook this manually using Dev::Unhook(). The function accepts arbitrarily-ordered parameters named as x86 registers. For example, you could set a parameter CMwNod@ rcx.
uint64 ptr
The pointer
int padding
The padding
string func
The name of the function to call
int pushRegisters
Which registers to push (see Dev::PushRegisters)
Dev::FreeRegister freeRegister
A register which is free to be used by the hook itself (you don't care about its value in your callback)
Dev::HookInfo@