IL2CPP: Load generic type/method instantiation signatures
This commit is contained in:
@@ -43,8 +43,8 @@ namespace Il2CppInspector
|
||||
// Generic method specs for vtables
|
||||
public Il2CppMethodSpec[] MethodSpecs { get; private set; }
|
||||
|
||||
// Addresses where metadata is used
|
||||
public ulong[] MetadataUsages { get; private set; }
|
||||
// List of run-time concrete generic class and method signatures
|
||||
public List<Il2CppGenericInst> GenericInstances { get; private set; }
|
||||
|
||||
// Every defined type
|
||||
public List<Il2CppType> Types { get; private set; }
|
||||
@@ -197,6 +197,9 @@ namespace Il2CppInspector
|
||||
|
||||
// Generic method specs
|
||||
MethodSpecs = image.ReadMappedArray<Il2CppMethodSpec>(MetadataRegistration.methodSpecs, (int) MetadataRegistration.methodSpecsCount);
|
||||
|
||||
// Concrete generic class and method signatures
|
||||
GenericInstances = image.ReadMappedObjectPointerArray<Il2CppGenericInst>(MetadataRegistration.genericInsts, (int) MetadataRegistration.genericInstsCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace Il2CppInspector
|
||||
public Dictionary<int, (ulong, object)> ParameterDefaultValue { get; } = new Dictionary<int, (ulong, object)>();
|
||||
public List<long> FieldOffsets { get; }
|
||||
public List<Il2CppType> TypeUsages => Binary.Types;
|
||||
public List<Il2CppGenericInst> GenericInstances => Binary.GenericInstances;
|
||||
public Dictionary<string, Il2CppCodeGenModule> Modules => Binary.Modules;
|
||||
public ulong[] CustomAttributeGenerators => Binary.CustomAttributeGenerators;
|
||||
public Il2CppMethodSpec[] MethodSpecs => Binary.MethodSpecs;
|
||||
|
||||
Reference in New Issue
Block a user