Help! Help Call Void Function

AmateurHacker

Platinian
public static System.Void CheckForbidSkinUsage();

Hello, I want to call this code only once. This much. Thank you in advance for your help.


See pictures. I can call the name of the code with the Libtool program and it works. But I want to transfer it to the Mod Menu.
I Also Enabled CheckForbidSkinUsage Code Tracking With Libtool. With Trace, the Code is Never Called While Loading or Playing the Game.
 

Attachments

  • Ekran görüntüsü 2025-02-05 175853.png
    Ekran görüntüsü 2025-02-05 175853.png
    77.9 KB · Views: 31
  • Ekran görüntüsü 2025-02-05 175904.png
    Ekran görüntüsü 2025-02-05 175904.png
    26.3 KB · Views: 31
bool RemoveFog = false;
void (*Fog)(void *instance);
void (*old_ClassName_Update)(void *instance);

void ClassName_Update(void *instance) {
if (instance != nullptr) {
if (RemoveFog) {
if (Fog) {
Fog(instance);

}
}
}
old_ClassName_Update(instance);
}


Fog = (void(*)(void*)) getAbsoluteAddress("libil2cpp.so", 0x34F4B80);
HOOK_LIB("libil2cpp.so", "0x34F725C", ClassName_Update,
 
bool RemoveFog = false;
void (*Fog)(void *instance);
void (*old_ClassName_Update)(void *instance);

void ClassName_Update(void *instance) {
if (instance != nullptr) {
if (RemoveFog) {
if (Fog) {
Fog(instance);

}
}
}
old_ClassName_Update(instance);
}


Fog = (void(*)(void*)) getAbsoluteAddress("libil2cpp.so", 0x34F4B80);
HOOK_LIB("libil2cpp.so", "0x34F725C", ClassName_Update,
Thank you.
 
bool RemoveFog = false;
void (*Fog)(void *instance);
void (*old_ClassName_Update)(void *instance);

void ClassName_Update(void *instance) {
if (instance != nullptr) {
if (RemoveFog) {
if (Fog) {
Fog(instance);

}
}
}
old_ClassName_Update(instance);
}


Fog = (void(*)(void*)) getAbsoluteAddress("libil2cpp.so", 0x34F4B80);
HOOK_LIB("libil2cpp.so", "0x34F725C", ClassName_Update,
Can We Close It After It's Called Only Once? Because the Update Function is Very Fast, Not 60 Frames Per Second. It has a speed of 500 frames. It may collapse.
 
Back
Top Bottom