IL2CPP: Load metadata v27; mark broken areas with TODO

This commit is contained in:
Katy Coe
2020-08-15 06:28:48 +02:00
parent 0d9c01ecaa
commit 1f738a60c6
6 changed files with 15 additions and 4 deletions

View File

@@ -267,7 +267,10 @@ namespace Il2CppInspector
TypeReferences = Image.ReadMappedObjectPointerArray<Il2CppType>(MetadataRegistration.ptypes, (int) MetadataRegistration.typesCount);
// Custom attribute constructors (function pointers)
CustomAttributeGenerators = Image.ReadMappedArray<ulong>(CodeRegistration.customAttributeGenerators, (int) CodeRegistration.customAttributeCount);
// TODO: Custom attribute generator load is broken in metadata v27 - this was moved to Il2CppCodeGenModule
if (Image.Version < 27) {
CustomAttributeGenerators = Image.ReadMappedArray<ulong>(CodeRegistration.customAttributeGenerators, (int) CodeRegistration.customAttributeCount);
}
// Method.Invoke function pointers
MethodInvokePointers = Image.ReadMappedArray<ulong>(CodeRegistration.invokerPointers, (int) CodeRegistration.invokerPointersCount);