Documentation

Dev::Hook

Function

HookInfo@ Dev::Hook(uint64 ptr, int padding, const string&in func, int pushRegisters = 0)

Hooks directly into game code. This requires manual unhooking in the OnDestroyed callback. 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)

Returns Dev::HookInfo@