Im use nepmods tester and test any offset. All offset work, but if im add offset in mod menu, 90% offset don't work. Im check all offset, all. Right, without error. Im try use HOOK_LIB/Mshookfunction, but all don't work.
Codes:
void (*old_Speed)(void *instance);
void Speed(void *instance) {
if (feature6) {
*(int *) ((uint64_t) instance + 0x18) = 0;
}
return old_Speed(instance);
}
//
MSHookFunction(
reinterpret_cast<void*>(
getAbsoluteAddress(
"libil2cpp.so",
string2Offset("0x744594")
)
),
reinterpret_cast<void*>(Speed),
reinterpret_cast<void**>(&old_Speed)
);
//
HOOK_LIB("libil2cpp.so", "0x744594", Speed, old_Speed);
Im use lgl mod menu 3.2
Codes:
void (*old_Speed)(void *instance);
void Speed(void *instance) {
if (feature6) {
*(int *) ((uint64_t) instance + 0x18) = 0;
}
return old_Speed(instance);
}
//
MSHookFunction(
reinterpret_cast<void*>(
getAbsoluteAddress(
"libil2cpp.so",
string2Offset("0x744594")
)
),
reinterpret_cast<void*>(Speed),
reinterpret_cast<void**>(&old_Speed)
);
//
HOOK_LIB("libil2cpp.so", "0x744594", Speed, old_Speed);
Im use lgl mod menu 3.2