DHookCreateFromConf Function

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

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


Handle gameconf

GameConfig handle

const char[] name

Name of the function in the gamedata to load.

Return Value

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


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