C#: Don't emit assembly type indices with --suppress-metadata (#127)

This commit is contained in:
Katy Coe
2021-01-23 23:36:12 +01:00
parent e2c17ec442
commit 61bd7637c6

View File

@@ -351,7 +351,10 @@ namespace Il2CppInspector.Outputs
var text = new StringBuilder();
foreach (var asm in assemblies) {
text.Append($"// Image {asm.Index}: {asm.ShortName} - Assembly: {asm.FullName} - Types {asm.ImageDefinition.typeStart}-{asm.ImageDefinition.typeStart + asm.ImageDefinition.typeCount - 1}\n");
text.Append($"// Image {asm.Index}: {asm.ShortName} - Assembly: {asm.FullName}");
if (!SuppressMetadata)
text.Append($" - Types {asm.ImageDefinition.typeStart}-{asm.ImageDefinition.typeStart + asm.ImageDefinition.typeCount - 1}");
text.AppendLine();
// Assembly-level attributes
if (outputAssemblyAttributes)