alsya
Solid & Active Platinian
how to hook slidervalue in void??
does my code really work? and what's wrong?
and I call the hook with
[//CODE=cpp]
A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0xB44234), (void *)HealthUpdate, (void **)&old_UpdateHealth); [/CODE]
does my code really work? and what's wrong?
C++:
// HEALTH FOR ENEMY BAR
void (*old_UpdateHealth)(void *instance, int HP, int BASEHP);
void HealthUpdate(void *instance, int HP, int BASEHP) {
if(instance != NULL && sliderValue > 1) {
return old_UpdateHealth(instance, HP, BASEHP);
}
return old_UpdateHealth(instance, HP, BASEHP);
}
and I call the hook with
[//CODE=cpp]
A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0xB44234), (void *)HealthUpdate, (void **)&old_UpdateHealth); [/CODE]