Fix 1-off function pointers in PE files

This commit is contained in:
Katy Coe
2018-03-18 05:42:52 +01:00
parent 9d72cf3bcf
commit 79ac482d72
2 changed files with 4 additions and 1 deletions

View File

@@ -140,7 +140,6 @@ namespace Il2CppInspector
}
public override void FinalizeInit(Il2CppBinary il2cpp) {
// Mach-O function pointers have an annoying habit of being 1-off
il2cpp.MethodPointers = il2cpp.MethodPointers.Select(x => x - 1).ToArray();
}