mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2026-01-06 02:29:41 +05:00
Output value of global offset, CodeRegistration and MetadataRegistration
This commit is contained in:
@@ -117,6 +117,10 @@ namespace Il2CppInspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void Configure(IFileFormatReader image, ulong codeRegistration, ulong metadataRegistration) {
|
private void Configure(IFileFormatReader image, ulong codeRegistration, ulong metadataRegistration) {
|
||||||
|
// Output locations
|
||||||
|
Console.WriteLine("CodeRegistration struct found at 0x{0:X16} (file offset 0x{1:X8})", image.Bits == 32 ? codeRegistration & 0xffff_ffff : codeRegistration, image.MapVATR(codeRegistration));
|
||||||
|
Console.WriteLine("MetadataRegistration struct found at 0x{0:X16} (file offset 0x{1:X8})", image.Bits == 32 ? metadataRegistration & 0xffff_ffff : metadataRegistration, image.MapVATR(metadataRegistration));
|
||||||
|
|
||||||
// Set width of long (convert to sizeof(int) for 32-bit files)
|
// Set width of long (convert to sizeof(int) for 32-bit files)
|
||||||
if (image.Bits == 32) {
|
if (image.Bits == 32) {
|
||||||
image.Stream.PrimitiveMappings.Add(typeof(long), typeof(int));
|
image.Stream.PrimitiveMappings.Add(typeof(long), typeof(int));
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ namespace Il2CppInspector
|
|||||||
Console.WriteLine("Container endianness: " + ((BinaryObjectReader) image).Endianness);
|
Console.WriteLine("Container endianness: " + ((BinaryObjectReader) image).Endianness);
|
||||||
Console.WriteLine("Architecture word size: {0}-bit", image.Bits);
|
Console.WriteLine("Architecture word size: {0}-bit", image.Bits);
|
||||||
Console.WriteLine("Instruction set: " + image.Arch);
|
Console.WriteLine("Instruction set: " + image.Arch);
|
||||||
|
Console.WriteLine("Global offset: 0x{0:X16}", image.GlobalOffset);
|
||||||
|
|
||||||
// Architecture-agnostic load attempt
|
// Architecture-agnostic load attempt
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user