diff --git a/Il2CppInspector/Il2CppBinaryX64.cs b/Il2CppInspector/Il2CppBinaryX64.cs index f76b51f..076cb57 100644 --- a/Il2CppInspector/Il2CppBinaryX64.cs +++ b/Il2CppInspector/Il2CppBinaryX64.cs @@ -32,9 +32,14 @@ namespace Il2CppInspector uint i, index; for (i = 0, index = 0; i < buff.Length && index < opcode.Length; i++) - if (buff[i] != opcode[index++]) + if (buff[i] != opcode[index++]) { index = 0; + // Maybe we're starting a new match + if (buff[i] != opcode[index++]) + index = 0; + } + if (index < opcode.Length) return null;