From 9deb908fafb84af70890de4f2c678a5268f93f2e Mon Sep 17 00:00:00 2001 From: Sour Date: Wed, 6 Jun 2018 19:03:04 -0400 Subject: [PATCH] Debugger: Fixed code preview in tooltips --- GUI.NET/Debugger/CodeTooltipManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GUI.NET/Debugger/CodeTooltipManager.cs b/GUI.NET/Debugger/CodeTooltipManager.cs index f2ab38f9..4ee75d71 100644 --- a/GUI.NET/Debugger/CodeTooltipManager.cs +++ b/GUI.NET/Debugger/CodeTooltipManager.cs @@ -78,7 +78,9 @@ namespace Mesen.GUI.Debugger { "Value", $"${byteValue.ToString("X2")} (byte){Environment.NewLine}${wordValue.ToString("X4")} (word)" } }; - this.ShowTooltip(word, values, -1, new AddressTypeInfo() { Address = (int)address, Type = AddressType.Register }); + AddressTypeInfo addressInfo = new AddressTypeInfo(); + InteropEmu.DebugGetAbsoluteAddressAndType(address, ref addressInfo); + this.ShowTooltip(word, values, -1, addressInfo); } private void DisplayLabelTooltip(string word, CodeLabel label)