View Single Post
Addie
Junior Member
Join Date: Nov 2018
Old 07-07-2019 , 22:51   Re: [NMRiH/Any] DHooks with detours not superseding function
Reply With Quote #3

Quote:
Originally Posted by Spirit_12 View Post
I think you are failing to set the return value with DHookSetReturn. Supercede will skip the real value, but you have to set a return value for the function.
I don't believe DHooks expects me to set a return value on a void function. It knows it's void thanks to gamedata:

PHP Code:
"Functions" 

    
"Bot_RunAll" 
    
{  
        
"return" "void" 

There's nothing for it to override. If it expected a return, it would have shown me this:

Code:
[SM] Exception reported: Tried to override return value without return value being set

Last edited by Addie; 07-08-2019 at 00:37.
Addie is offline