From f53ee2cec14d8334e74162c125baf75dc3cf90fd Mon Sep 17 00:00:00 2001 From: Perfare Date: Sun, 27 Feb 2022 13:18:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=8C=96=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Il2CppDumper/Utils/SectionHelper.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Il2CppDumper/Utils/SectionHelper.cs b/Il2CppDumper/Utils/SectionHelper.cs index 1e93b58..04e392a 100644 --- a/Il2CppDumper/Utils/SectionHelper.cs +++ b/Il2CppDumper/Utils/SectionHelper.cs @@ -340,11 +340,15 @@ namespace Il2CppDumper var va2 = FindReference(va - (ulong)i * il2Cpp.PointerSize); if (va2 != 0ul) { - if (il2Cpp.Version >= 29) + il2Cpp.Position = il2Cpp.MapVATR(va2 - il2Cpp.PointerSize); + if (il2Cpp.ReadIntPtr() == imageCount) { - return va2 - il2Cpp.PointerSize * 14; + if (il2Cpp.Version >= 29) + { + return va2 - il2Cpp.PointerSize * 14; + } + return va2 - il2Cpp.PointerSize * 13; } - return va2 - il2Cpp.PointerSize * 13; } } }