From 6c41ce724e4261799955fdf9aa8c979c5976fc43 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 28 Oct 2019 03:23:19 +0100 Subject: [PATCH] Don't add "" types --- Il2CppInspector/Reflection/Assembly.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector/Reflection/Assembly.cs b/Il2CppInspector/Reflection/Assembly.cs index 4eb9619..e58fefa 100644 --- a/Il2CppInspector/Reflection/Assembly.cs +++ b/Il2CppInspector/Reflection/Assembly.cs @@ -47,8 +47,13 @@ namespace Il2CppInspector.Reflection { Module = Model.Package.Modules[FullName]; // Generate types in DefinedTypes from typeStart to typeStart+typeCount-1 - for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) - DefinedTypes.Add(new TypeInfo(Model.Package, t, this)); + for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) { + var type = new TypeInfo(Model.Package, t, this); + + // Don't add empty module definitions + if (type.Name != "") + DefinedTypes.Add(type); + } } public override string ToString() => FullName;