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

Help! Does anyone know why my hook doesn't work?

Master TK

Platinian
Original poster
Nov 11, 2019
30
7
8
26
Brasil
Can anyone tell me what I did wrong?
C++:
bool AddLevel


void (*uplevel)(void *instance, int value);
void (*old_levelup)(void *instance);
void levelup(void *instance) {
if (instance != NULL) {
    if (AddLevel) {
uplevel(instance, 1);
  }
}
old_levelup(instance);
}


uplevel = (void(*)(void *,int))getAbsoluteAddress("libil2cpp.so", 0xA62594);
   HOOK_LIB("libil2cpp.so","0xA64C08", levelup, old_levelup);


   OBFUSCATE("99_CollapseAdd_Button_Add Level"),


     case 99:
            AddLevel = boolean;
            break;
 

Raebydett

Awesome Active Platinian
Jan 20, 2020
171
60
28
G
C++:
void (*uplevel)(void *instance,int value);
void (*old_levelup)(void *instance);
void levelup(void *instance) {
if (instance != NULL) {
    if (AddLevel) {
        AddLevel = false;
        uplevel(instance, 9999);
  }
}
old_levelup(instance);
}

case:
    AddLevel = true;
break:
 

dani olmo

Platinian
Apr 26, 2022
19
2
1
24
in your home :0
C++:
bool AddLevel = false;


void (*uplevel)(void *instance, int value);

void (*old_levelup)(void *instance);
void levelup(void *instance) {
if (instance != NULL) {
    if (AddLevel) {
uplevel(instance, 1);
  }
}
old_levelup(instance);
}


uplevel = (void(*)(void *,int))getAbsoluteAddress("libil2cpp.so", 0xA62594);
   HOOK_LIB("libil2cpp.so","0xA64C08", levelup, old_levelup);


   OBFUSCATE("99_CollapseAdd_Toggle_Add Level"),


     case 99:
            AddLevel = boolean;
            break;