Fix incorrect method virtual address output for 64-bit binaries in v24.2
This commit is contained in:
@@ -51,9 +51,8 @@ namespace Il2CppInspector.Reflection
|
|||||||
// In the event of an exception, the method pointer is not set in the file
|
// In the event of an exception, the method pointer is not set in the file
|
||||||
// This probably means it has been optimized away by the compiler, or is an unused generic method
|
// This probably means it has been optimized away by the compiler, or is an unused generic method
|
||||||
try {
|
try {
|
||||||
pkg.BinaryImage.Position =
|
pkg.BinaryImage.Position = pkg.BinaryImage.MapVATR(Assembly.Module.methodPointers + (ulong) ((method - 1) * (pkg.BinaryImage.Bits / 8)));
|
||||||
pkg.BinaryImage.MapVATR(Assembly.Module.methodPointers + (method - 1) * 4);
|
VirtualAddress = pkg.BinaryImage.Stream.ReadObject<ulong>();
|
||||||
VirtualAddress = pkg.BinaryImage.ReadUInt32();
|
|
||||||
} catch (Exception) { }
|
} catch (Exception) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user