I got a problem
I found this offset that I think is useful (I don't want to say the game cause I'm afraid it might get patched or someone might steal it)
0xB7588 BL sub_BD928
Instead of hacking it the usual way, I wanted to try an MSHook patch.
Would this be possible?
#include <substrate.h>
#import "writeData.h"
float (*costOld)(void *ptr);
float cost(void *ptr) {
return 0.0f;
}
%ctor
{
MSHookFunction((void*)(0xB7588+1),(void*)cost,(void**)&costOld);
}
I included writeData cause the function isn't true MShook so I'm not really sure
Just wondering if it was possible.
If it isn't, would there be another way of going about this? (I found more functions, but they're BOOL ones)