I can't make the hook. Nothing happens. T-T
game: SHADOW LORD: LEGENDS KNIGHT
*MOD MENU lgl 2.9*
[Address(RVA = "0x6D76B0", Offset = "0x6D76B0", VA = "0x6D76B0")]
private void Update()
[FieldOffset(Offset = "0xFC")]
private float totalDamage;
bool Dmg = false;
void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
if (Dmg) {
*(float *) ((uint64_t) instance + 0xFC) = 999999.0f;
}
}
return old_Update(instance);
}
HOOK_LIB("libil2cpp.so", "0x6D76B0", Update, old_Update);
OBFUSCATE("Toggle_Damage"),
switch (featNum) {
case 0:
Dmg = boolean;
break;
}
game: SHADOW LORD: LEGENDS KNIGHT
*MOD MENU lgl 2.9*
[Address(RVA = "0x6D76B0", Offset = "0x6D76B0", VA = "0x6D76B0")]
private void Update()
[FieldOffset(Offset = "0xFC")]
private float totalDamage;
bool Dmg = false;
void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
if (Dmg) {
*(float *) ((uint64_t) instance + 0xFC) = 999999.0f;
}
}
return old_Update(instance);
}
HOOK_LIB("libil2cpp.so", "0x6D76B0", Update, old_Update);
OBFUSCATE("Toggle_Damage"),
switch (featNum) {
case 0:
Dmg = boolean;
break;
}
Attachments
-
25.1 KB Views: 77
-
19.6 KB Views: 65