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

Help! Hook

Energo

Platinian
help me hook the method and replace the variable int(24) in it with float(1c)
// RVA: 0x1C40CF4 Offset: 0x1C40CF4 VA: 0x1C40CF4
public int get_Coins() { }
 
bool ucoins = false;

float (*old_get_coins)(void *instance);
float get_coins(void *instance) {
if (instance != NULL && ucoins) {
return 999999.0f;
}
return old_get_coins(instance);
}

MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x1C40CF4), (void *) coins, (void **) &old_coins);

OBFUSCATE("0_Toggle_Unlimited Coins"),

case 0:
ucoins = boolean;
break;