From 396c222ac5f382e0ea32a9b42bf5a5e13e752347 Mon Sep 17 00:00:00 2001 From: Luke <17146677+LukeFZ@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:18:49 +0200 Subject: [PATCH] Tweak 29.1 heuristic --- Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs index e6de2ad..f07220b 100644 --- a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs +++ b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs @@ -294,7 +294,7 @@ namespace Il2CppInspector CodeRegistration = Image.ReadMappedObject(codeRegistration); } - if (Image.Version == 29 && CodeRegistration.genericMethodPointersCount > 0x50000) + if (Image.Version == 29 && (long)CodeRegistration.genericMethodPointersCount - MetadataRegistration.genericMethodTableCount > 0x10000) { Image.Version = 29.1; codeRegistration -= 2 * pointerSize;