View Single Post
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 02-04-2020 , 15:09   Detour the same function twice
Reply With Quote #1

I have 2 extensions with detours for CreateEntityByName function:
PHP Code:
DETOUR_DECL_STATIC3(CreateEntityByNameDetourCBaseEntity *, const char *, classNameintiForceEdictIndexboolflag)
{
    return 
DETOUR_STATIC_CALL(CreateEntityByNameDetour)(classNameiForceEdictIndexflag);
}

detourPtr DETOUR_CREATE_STATIC(CreateEntityByNameDetour"CreateEntityByName"); 
The problem is that only one of the extensions can hook the function successfully - the first one. For the second one detourPtr is always nullptr.

Apparentelly the signature changes and I can't know a new one. Is there a way to bypass the limitation?

Last edited by kadet.89; 02-08-2020 at 03:06.
kadet.89 is offline
Send a message via Skype™ to kadet.89