how to hook inputvalue with fields?
Help, pls
Code:
int sliderValue = 1, level = 0;
void (*old_Rate)(void *instance);
void Rate(void *instance) {
if (feature3 != NULL) {
if (feature3) {
*(int *) ((uint64_t) instance + 0xBC) = 99999;
}
}
return old_Rate(instance);
}
MSHookFunction((void*)getAbsoluteAddress("libil2cpp.so", 0x5F60DC), (void*)Rate, (void**)&old_Rate);
OBFUSCATE("Toggle_Rate"),
case 2:
sliderValue = value;
break;