DHookCreateFromConf

Last Updated2022-02-01
Created At2021-11-17

Setup a detour or hook for a function as described in a "Functions" section in gamedata.

native DHookSetup DHookCreateFromConf(Handle gameconf, const char[] name)

Parameters

Handle gameconf
GameConfig handle
const char[] name
Name of the function in the gamedata to load.

Return Value

DHookSetup Setup handle for the detour or INVALID_HANDLE if offset/signature/address wasn't found.

Error

Failed to create detour setup handle, invalid gamedata handle, invalid callback function or failed to find function in gamedata.