Skip to content

Commit b3f597d

Browse files
committed
Split value comment.
1 parent e305156 commit b3f597d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ReClass.NET/Nodes/BaseHexCommentNode.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ protected int AddComment(ViewInfo view, int x, int y, float fvalue, IntPtr ivalu
1919
}
2020
if (view.Settings.ShowCommentInteger)
2121
{
22-
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, ivalue == IntPtr.Zero ? "0" : $"{ivalue.ToInt64()} (0x{uvalue.ToUInt64():X})") + view.Font.Width;
22+
if (ivalue == IntPtr.Zero)
23+
{
24+
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, "0") + view.Font.Width;
25+
}
26+
else
27+
{
28+
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, ivalue.ToInt64().ToString()) + view.Font.Width;
29+
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, $"0x{uvalue.ToUInt64():X}") + view.Font.Width;
30+
}
2331
}
2432

2533
var namedAddress = view.Memory.Process.GetNamedAddress(ivalue);

0 commit comments

Comments
 (0)