This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Game crashes when hooking Update() method

Denka

Platinian
Hi. When i hook update method the game crashes. Here is my update and old update method:
Code:
void (*GoldHack_old)(void *instance);
void GoldHack(void *instance){
    if(instance != NULL && NM.isMajor){
        *(float *) ((uint64_t) instance + 0x300) = 999.5f;
    }
    return GoldHack_old(instance);
}
And here is my hook call: A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x655D98), (void *)GoldHack, (void **)&GoldHack_old);
Help me pls
 
void (*old_GoldHack)(void *instance);
void GoldHack(void *instance){
if(instance != NULL && NM.isMajor){
*(float *) ((uint64_t) instance + 0x300) = 999.5f;
}
return old_GoldHack(instance);
}

A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x655D98), (void *)GoldHack, (void **)&old_GoldHack);
 
Last edited: