Raised This Month: $51 Target: $400
 12% 

Solved Detour the same function twice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode