From 47ff61a996cd5de4e480d2560661dd5983be2c0c Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 6 Dec 2020 17:49:27 +0100 Subject: [PATCH] IL2CPP: Fix not including final encrypted string --- Il2CppInspector.Common/IL2CPP/Metadata.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/IL2CPP/Metadata.cs b/Il2CppInspector.Common/IL2CPP/Metadata.cs index 220aa80..932db53 100644 --- a/Il2CppInspector.Common/IL2CPP/Metadata.cs +++ b/Il2CppInspector.Common/IL2CPP/Metadata.cs @@ -178,7 +178,7 @@ namespace Il2CppInspector Position = Header.stringOffset; // Read in all of the strings as if they are fixed length rather than null-terminated - foreach (var offset in stringOffsets.Zip(stringOffsets.Skip(1), (a, b) => (current: a, next: b))) { + foreach (var offset in stringOffsets.Zip(stringOffsets.Skip(1).Append(Header.stringCount), (a, b) => (current: a, next: b))) { var encryptedString = ReadBytes(offset.next - offset.current - 1); // The null terminator is the XOR key