FromConf

Last Updated2021-11-17
Created At2021-11-17

Setup a vtable hook for a function as described in a "Functions" section in gamedata. The "Functions" section is parsed once the gamedata file is loaded and cached globally.

native DynamicHook FromConf(Handle gameconf, const char[] name)

Parameters

Handle gameconf
GameData handle to use for address lookup. Doesn't have to be the same as the one with the "Functions" section.
const char[] name
Name of the function in a "Functions" section to load.

Return Value

DynamicHook Setup handle for the detour or null if offset wasn't found.

Error

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