View Single Post
Addie
Junior Member
Join Date: Nov 2018
Old 07-08-2019 , 00:25   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #685

I am having issues with the experimental detours branch.
Game is No More Room in Hell and I'm returning MRES_Supercede on a void function.

PHP Code:
void __cdecl Bot_RunAllvoid 
The detour fires, but so does the real function.

Could this be a bug, or am I doing something wrong?

My code:

Spoiler


My gamedata:

Spoiler


Output:
Code:
Bot_RunAll detoured!
Detouring..
Bot kicked by server. (caused by the real function)
For some context, Bot_RunAll() is called by GameStartFrame(), and kicks any bots it finds. My code tries to stop that.

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