From c9bd4187c29920733aca0731387c93167be39a1b Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 16 Aug 2020 21:47:59 +0200 Subject: [PATCH] IL2CPP: Fix metadata usage detection for v27 for 32-bit binaries --- Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs b/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs index 631c4e7..e7578ce 100644 --- a/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs +++ b/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs @@ -171,7 +171,7 @@ namespace Il2CppInspector // Scan the image looking for a sequential block of at least 'threshold' valid metadata tokens while (BinaryImage.Position < BinaryImage.Length && (usagesCount == 0 || sequenceLength > 0)) { - var word = BinaryImage.ReadWord(); + var word = BinaryImage.ReadObject(); if (word % 2 != 1 || word >> 32 != 0) { sequenceLength = 0;