Output: IDA Python script generation

IL2CPP: Implement MetadataUsages
This commit is contained in:
Carter Bush
2020-01-27 07:31:21 +11:00
committed by Katy Coe
parent 89a0b2e97f
commit 8045f2cfd7
6 changed files with 204 additions and 2 deletions

View File

@@ -43,6 +43,9 @@ namespace Il2CppInspector
// Generic method specs for vtables
public Il2CppMethodSpec[] MethodSpecs { get; private set; }
// Addresses where metadata is used
public ulong[] MetadataUsages { get; private set; }
// Every defined type
public List<Il2CppType> Types { get; private set; }
@@ -194,6 +197,9 @@ namespace Il2CppInspector
// Generic method specs
MethodSpecs = image.ReadMappedArray<Il2CppMethodSpec>(MetadataRegistration.methodSpecs, (int) MetadataRegistration.methodSpecsCount);
// Metadata usages (addresses)
MetadataUsages = image.ReadMappedArray<ulong>(MetadataRegistration.metadataUsages, (int)MetadataRegistration.metadataUsagesCount);
}
}
}