From d43157cab5a9c2c33d906f4eeebc11ccfdc21253 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:29:06 +0100 Subject: [PATCH] 29/31.2 don't actually exist, this logic is not needed --- Il2CppInspector.Common/IL2CPP/Metadata.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Il2CppInspector.Common/IL2CPP/Metadata.cs b/Il2CppInspector.Common/IL2CPP/Metadata.cs index 5de9ed4b..c71578a4 100644 --- a/Il2CppInspector.Common/IL2CPP/Metadata.cs +++ b/Il2CppInspector.Common/IL2CPP/Metadata.cs @@ -195,25 +195,6 @@ private void Initialize() Header.AttributeDataRangeSize / Sizeof()); } - if (Version is 29 or 31) - { - // 29.2/31.2 added a new isUnmanagedCallersOnly flag to Il2CppMethodDefinition. - // This offsets all subsequent entries by one - we can detect this by checking the - // top token byte (which should always be 0x06). - - if (Methods.Length >= 2) - { - var secondToken = Methods[1].token; - if (secondToken >> 24 != 0x6) - { - Version += 0.2; - - Methods = ReadArray(Header.methodsOffset, - Header.methodsCount / Sizeof(typeof(Il2CppMethodDefinition))); - } - } - } - // Get all metadata strings var pluginGetStringsResult = PluginHooks.GetStrings(this); if (pluginGetStringsResult.IsDataModified && !pluginGetStringsResult.IsInvalid)