Saturday 2 May 2020

MSHookFunction boolean need help...

Hi, I have tried to use hook to mod game recently, but I get the game crash when calling the following bool function, how to write the code correctly? ingame dump.cs function: public bool IsEnemy(BaseUnit unit); // RVA: 0xC6EE38 Offset: 0xC6EE38 my hook script: bool (*origIsEnemy)(void *_this); bool _hookIsEnemy(void * _this) { return origIsEnemy( _this); } MSHookFunction((void *)getRealOffset(0xC6EE38), (void *)_hookIsEnemy, (void **)&origIsEnemy);

from iOSGods RSS Feed https://ift.tt/3daZ9qd

No comments:

Post a Comment