From e3e0382e8cf1f97046e738b5be33321d5860a554 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Wed, 29 Nov 2023 21:20:26 +0100 Subject: [PATCH] forgot to commit the pointerSize decl --- Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs index 05d60f7..66a6e72 100644 --- a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs +++ b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs @@ -269,6 +269,8 @@ namespace Il2CppInspector CodeRegistrationPointer = codeRegistration; MetadataRegistrationPointer = metadataRegistration; + var pointerSize = Image.Bits == 32 ? 4u : 8u; + Console.WriteLine("CodeRegistration struct found at 0x{0:X16} (file offset 0x{1:X8})", Image.Bits == 32 ? codeRegistration & 0xffff_ffff : codeRegistration, Image.MapVATR(codeRegistration)); Console.WriteLine("MetadataRegistration struct found at 0x{0:X16} (file offset 0x{1:X8})", Image.Bits == 32 ? metadataRegistration & 0xffff_ffff : metadataRegistration, Image.MapVATR(metadataRegistration));