mxiloe
Platinian
Hey y'all, can someone pls open my god damn eyes and tell me whats wrong with the second hook?
Like my bool hook works like a fckng charm but my float hook just does not his job:
what is wrong here?:
Like my bool hook works like a fckng charm but my float hook just does not his job:
Code:
bool UnlockPet = false;
case 4:
UnlockPet = ! UnlockPet;
break;
bool (*old_IsUnlockedPet)(void *instance);
bool IsUnlockedPet(void *instance) {
if (instance != NULL) {
if (UnlockPet) {
return true;
}
}
return old_IsUnlockedPet(instance);
}
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x8F8B6C), (void *) IsUnlockedPet, (void **)&old_IsUnlockedPet);
what is wrong here?:
Code:
bool Heart = false;
case 7:
Heart = ! Heart;
break;
float (*old_getHeart)(void *instance);
float getHeart(void *instance) {
if (instance != NULL){
if(Heart) {
return 100.0f;
}
}
return old_getHeart(instance);
}
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x8F22E8), (void *) getHeart, (void **)&old_getHeart);