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

[NMRiH/Any] DHooks with detours not superseding function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Addie
Junior Member
Join Date: Nov 2018
Old 07-07-2019 , 18:33   [NMRiH/Any] DHooks with detours not superseding function
Reply With Quote #1

I'm trying to prevent the execution of:

PHP Code:
void __cdecl Bot_RunAll() 
using DHooks with Experimental Detours.

I successfully create the detour and simply return MRES_Supercede. Code below:

Spoiler


My gamedata:

Spoiler


My detour executes but so does the original function, why?

From dhooks.inc:

PHP Code:
enum MRESReturn
{
    
MRES_Supercede                // skip real function; use my return value
}; 
I've detoured plenty of functions in the past but never superseded them till now.
Am I doing something wrong?

Last edited by Addie; 07-07-2019 at 22:52.
Addie is offline
 



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 05:19.


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