I have 2 extensions with detours for CreateEntityByName function:
PHP Code:
DETOUR_DECL_STATIC3(CreateEntityByNameDetour, CBaseEntity *, const char *, className, int, iForceEdictIndex, bool, flag)
{
return DETOUR_STATIC_CALL(CreateEntityByNameDetour)(className, iForceEdictIndex, flag);
}
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?