richardsonmods Posted April 13, 2023 Posted April 13, 2023 I have this function void (*orig_SetMoves)(void *instance,int moves); void SetMoves(void *instance,int moves) { if(instance != NULL && hack1) { moves = 99; } orig_SetMoves(instance,moves); } MSHookFunction((void *) getAbsoluteAddress(targetLibName, string2Offset(OBFUSCATE_KEY("0xFD4B88", '?'))), (void *) SetMoves, (void **) &orig_SetMoves); How to converter?
MC874 Posted April 15, 2023 Posted April 15, 2023 On 4/14/2023 at 3:35 AM, richardsonmods said: I have this function void (*orig_SetMoves)(void *instance,int moves); void SetMoves(void *instance,int moves) { if(instance != NULL && hack1) { moves = 99; } orig_SetMoves(instance,moves); } MSHookFunction((void *) getAbsoluteAddress(targetLibName, string2Offset(OBFUSCATE_KEY("0xFD4B88", '?'))), (void *) SetMoves, (void **) &orig_SetMoves); How to converter? Hi @richardsonmods, MSHookFunction is a package for C language. If you want to see it in action, you might want to use it first and debug it using Ghidra. This way, you can see how MSHookFunction doing it's thing ( The Instruction & it's Hex ).
Question
richardsonmods
I have this function
How to converter?
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.