Fix pointer extraction for MSVC in metadata <21.
This change causes the Inspector to properly parse DLLs generated with Il2Cpp versions 5.3.0f4 through 5.3.4f1 (excluding 5.3.2f1, which is a separate problem).
This commit is contained in:
@@ -32,10 +32,17 @@ namespace Il2CppInspector
|
||||
return (0, 0);
|
||||
|
||||
// Jump to Il2CppCodegenRegistration
|
||||
image.Position = image.MapVATR((ulong) pCgr + 6);
|
||||
metadata = image.ReadUInt32();
|
||||
image.Position = image.MapVATR((ulong) pCgr + 11);
|
||||
code = image.ReadUInt32();
|
||||
if(image.Version < 21) {
|
||||
image.Position = image.MapVATR((ulong)pCgr + 1);
|
||||
metadata = image.ReadUInt32();
|
||||
image.Position = image.MapVATR((ulong)pCgr + 6);
|
||||
code = image.ReadUInt32();
|
||||
} else {
|
||||
image.Position = image.MapVATR((ulong)pCgr + 6);
|
||||
metadata = image.ReadUInt32();
|
||||
image.Position = image.MapVATR((ulong)pCgr + 11);
|
||||
code = image.ReadUInt32();
|
||||
}
|
||||
return (code, metadata);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user