Don't add "<Module>" types
This commit is contained in:
@@ -47,8 +47,13 @@ namespace Il2CppInspector.Reflection {
|
|||||||
Module = Model.Package.Modules[FullName];
|
Module = Model.Package.Modules[FullName];
|
||||||
|
|
||||||
// Generate types in DefinedTypes from typeStart to typeStart+typeCount-1
|
// Generate types in DefinedTypes from typeStart to typeStart+typeCount-1
|
||||||
for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++)
|
for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) {
|
||||||
DefinedTypes.Add(new TypeInfo(Model.Package, t, this));
|
var type = new TypeInfo(Model.Package, t, this);
|
||||||
|
|
||||||
|
// Don't add empty module definitions
|
||||||
|
if (type.Name != "<Module>")
|
||||||
|
DefinedTypes.Add(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString() => FullName;
|
public override string ToString() => FullName;
|
||||||
|
|||||||
Reference in New Issue
Block a user