Fix regression added in eeb46c58

This commit is contained in:
Katy Coe
2019-10-22 17:02:54 +02:00
parent 48df3c42b3
commit 3e1326bb65

View File

@@ -63,6 +63,10 @@ namespace Il2CppInspector
if (opcode == 0x838B) {
Image.Position = Image.MapVATR(metadata);
metadata = Image.ReadUInt32();
}
if (opcode != 0x838B && opcode != 0x838D)
return (0, 0);
// Repeat the same logic for extracting the Code pointer
Image.Position = funcPtr + 0x2A;
@@ -72,11 +76,12 @@ namespace Il2CppInspector
if (opcode == 0x838B) {
Image.Position = Image.MapVATR(code);
code = Image.ReadUInt32();
}
if (opcode != 0x838B && opcode != 0x838D)
return (0, 0);
return (code, metadata);
}
}
return (0, 0);
}
}
}