- Joined
- Jul 5, 2018
- Messages
- 3
- Points
- 1
void (*OnClickFishing)(void *instance);
void(*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL && fishing){
int state *(int *) ((uint32_t) instance + 0x234);
if (state == 0)
{ OnClickFishing(instance); }
else if (state == 4)
{ OnClickFishing(instance); }
} return old_Update(instance); }
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0xF6D128), (void *) Update, (void **) &old_Update);
OnClickFishing = (void(*)(void *))getAbsoluteAddress("libil2cpp.so", 0xF74494);
how to read fields 0x234
if (field == 0);
call OnClickFishing
void(*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL && fishing){
int state *(int *) ((uint32_t) instance + 0x234);
if (state == 0)
{ OnClickFishing(instance); }
else if (state == 4)
{ OnClickFishing(instance); }
} return old_Update(instance); }
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0xF6D128), (void *) Update, (void **) &old_Update);
OnClickFishing = (void(*)(void *))getAbsoluteAddress("libil2cpp.so", 0xF74494);
how to read fields 0x234
if (field == 0);
call OnClickFishing