Output: Exclude root namespace by default

This commit is contained in:
Katy Coe
2019-10-31 23:35:58 +01:00
parent dbc3ef40b0
commit ac47c811be
5 changed files with 9 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ namespace Il2CppInspector
// Only print namespace if we're not nested
if (!type.IsNested)
writer.Write($"{prefix}// Namespace: {type.Namespace}\n");
writer.Write($"{prefix}// Namespace: {(!string.IsNullOrEmpty(type.Namespace)? type.Namespace : "<default namespace>")}\n");
// Type declaration
if (type.IsImport)