deadfalcor
Rookie
I made a script.lua to use in game guardian using targetLibName and offsets, the script worked normally, but when I try to use a hook or memorypatch in LGL Mod, it doesn't work.
*No il2cpp.so*
*No dll files*
*Game has no metadata file*
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
case 10:
if(boolean){
MemoryPatch::createWithHex(targetLibName, string2Offset(OBFUSCATE("0x12345678")), OBFUSCATE("01 00 00 00 00 00 00 00")).Modify(); --- Example
}else{
Restore();
}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
float sliderValue = 1;
float (*old_Example)(void *instance);
float UpdateExample(void *instance){
if(instance != NULL && sliderValue>=1){
return (float) sliderValue;
}
return old_Update(instance);
}
HOOK_LIB("targetLibName.so", "0x87654321", UpdateExample, old_Example);
case 20:
sliderValue = value*100;
break;
*No il2cpp.so*
*No dll files*
*Game has no metadata file*
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
case 10:
if(boolean){
MemoryPatch::createWithHex(targetLibName, string2Offset(OBFUSCATE("0x12345678")), OBFUSCATE("01 00 00 00 00 00 00 00")).Modify(); --- Example
}else{
Restore();
}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
float sliderValue = 1;
float (*old_Example)(void *instance);
float UpdateExample(void *instance){
if(instance != NULL && sliderValue>=1){
return (float) sliderValue;
}
return old_Update(instance);
}
HOOK_LIB("targetLibName.so", "0x87654321", UpdateExample, old_Example);
case 20:
sliderValue = value*100;
break;