Inspector: Make custom attribute constructor pointers available

This commit is contained in:
Katy Coe
2019-11-04 00:26:02 +01:00
parent c04a70eacb
commit d8a020dc7a
3 changed files with 13 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ namespace Il2CppInspector
// Pointers to field offsets
public long[] FieldOffsetPointers { get; private set; }
// Generated functions which call constructors on custom attributes
public long[] CustomAttributeGenerators { get; private set; }
// Every defined type
public List<Il2CppType> Types { get; private set; }
@@ -176,6 +179,9 @@ namespace Il2CppInspector
// Type definitions (pointer array)
Types = image.ReadMappedObjectPointerArray<Il2CppType>(MetadataRegistration.ptypes, (int) MetadataRegistration.typesCount);
// Custom attribute constructors
CustomAttributeGenerators = Image.ReadMappedWordArray(CodeRegistration.customAttributeGenerators, (int) CodeRegistration.customAttributeCount);
}
}
}