Model: Include TypesByMethodSpecClassIndex in Model.Types
This commit is contained in:
@@ -63,7 +63,7 @@ def SetName(addr, name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void writeMethods() {
|
private void writeMethods() {
|
||||||
foreach (var type in model.Types.Where(t => t != null)) {
|
foreach (var type in model.Types) {
|
||||||
writeMethods(type.Name, type.DeclaredConstructors);
|
writeMethods(type.Name, type.DeclaredConstructors);
|
||||||
writeMethods(type.Name, type.DeclaredMethods);
|
writeMethods(type.Name, type.DeclaredMethods);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,9 @@ namespace Il2CppInspector.Reflection
|
|||||||
public ConcurrentDictionary<ulong, TypeInfo> TypesByVirtualAddress { get; } = new ConcurrentDictionary<ulong, TypeInfo>();
|
public ConcurrentDictionary<ulong, TypeInfo> TypesByVirtualAddress { get; } = new ConcurrentDictionary<ulong, TypeInfo>();
|
||||||
|
|
||||||
// Every type
|
// Every type
|
||||||
public IEnumerable<TypeInfo> Types => new IEnumerable<TypeInfo>[] {TypesByDefinitionIndex, TypesByReferenceIndex, TypesByVirtualAddress.Values}
|
public IEnumerable<TypeInfo> Types => new IEnumerable<TypeInfo>[]
|
||||||
.SelectMany(t => t).Where(t => t != null).Distinct();
|
{TypesByDefinitionIndex, TypesByReferenceIndex, TypesByMethodSpecClassIndex.Values, TypesByVirtualAddress.Values}
|
||||||
|
.SelectMany(t => t).Distinct();
|
||||||
|
|
||||||
// List of all methods ordered by their MethodDefinitionIndex
|
// List of all methods ordered by their MethodDefinitionIndex
|
||||||
public MethodBase[] MethodsByDefinitionIndex { get; }
|
public MethodBase[] MethodsByDefinitionIndex { get; }
|
||||||
|
|||||||
Reference in New Issue
Block a user