From 5dfc9ebebb7c3abe952f20c768d2466a02bd246a Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 4 Nov 2019 00:34:50 +0100 Subject: [PATCH] Output: Show virtual address of custom attributes --- Il2CppDumper/Il2CppCSharpDumper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppDumper/Il2CppCSharpDumper.cs b/Il2CppDumper/Il2CppCSharpDumper.cs index f23f271..3af3e3f 100644 --- a/Il2CppDumper/Il2CppCSharpDumper.cs +++ b/Il2CppDumper/Il2CppCSharpDumper.cs @@ -274,7 +274,7 @@ namespace Il2CppInspector writer.Write(prefix + "}\n"); } - private static string attributeText(IEnumerable attributes, string linePrefix = "", string attributePrefix = "") { + private string attributeText(IEnumerable attributes, string linePrefix = "", string attributePrefix = "") { var sb = new StringBuilder(); foreach (var cad in attributes) { @@ -282,7 +282,7 @@ namespace Il2CppInspector var suffix = name.LastIndexOf("Attribute", StringComparison.Ordinal); if (suffix != -1) name = name[..suffix]; - sb.Append($"{linePrefix}[{attributePrefix}{name}]\n"); + sb.Append($"{linePrefix}[{attributePrefix}{name}] // {formatAddress((ulong)cad.VirtualAddress)}\n"); } return sb.ToString();