Debugger: Fixed code preview in tooltips

This commit is contained in:
Sour 2018-06-06 19:03:04 -04:00
parent be8cc9110d
commit 9deb908faf

View file

@ -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)