C++: Output Il2CppClass* (TypeInfo) pointers

This commit is contained in:
Katy Coe
2020-07-18 21:23:23 +02:00
parent 7124149fef
commit 6d50ab7546
3 changed files with 22 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ namespace Il2CppInspector
// Could also use coff.Characteristics (IMAGE_FILE_32BIT_MACHINE) or coff.Machine
public override int Bits => (PE) pe.Magic == PE.IMAGE_NT_OPTIONAL_HDR64_MAGIC ? 64 : 32;
public override ulong ImageBase => pe.ImageBase;
protected override bool Init() {
// Check for MZ signature "MZ"
if (ReadUInt16() != 0x5A4D)