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;