IL2CPP: Fix not including final encrypted string

This commit is contained in:
Katy Coe
2020-12-06 17:49:27 +01:00
parent 515365e9e9
commit 47ff61a996

View File

@@ -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