From 05ee90a4e95695f0f0006060c38913eeb2523e9c Mon Sep 17 00:00:00 2001 From: Perfare Date: Sun, 2 Jan 2022 10:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D2018.4.x=E4=B8=8B=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=87=BA=E7=8E=B0=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Il2CppDumper/Il2Cpp/Metadata.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Il2CppDumper/Il2Cpp/Metadata.cs b/Il2CppDumper/Il2Cpp/Metadata.cs index a2748fb..f0804a3 100644 --- a/Il2CppDumper/Il2Cpp/Metadata.cs +++ b/Il2CppDumper/Il2Cpp/Metadata.cs @@ -76,7 +76,20 @@ namespace Il2CppDumper { Version = 24.4; } + var v241Plus = false; + if (Version == 24.1 && header.assembliesSize / 64 == imageDefs.Length) + { + v241Plus = true; + } + if (v241Plus) + { + Version = 24.4; + } assemblyDefs = ReadMetadataClassArray(header.assembliesOffset, header.assembliesSize); + if (v241Plus) + { + Version = 24.1; + } typeDefs = ReadMetadataClassArray(header.typeDefinitionsOffset, header.typeDefinitionsSize); methodDefs = ReadMetadataClassArray(header.methodsOffset, header.methodsSize); parameterDefs = ReadMetadataClassArray(header.parametersOffset, header.parametersSize);