Debugger: Fix "edit label" when used on an address that is not mapped to ROM/RAM (e.g PPU registers)
This commit is contained in:
parent
ddc7d9fa97
commit
c4f4c93ab9
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
InteropEmu.DebugGetAbsoluteAddressAndType((UInt32)_lastClickedAddress, info);
|
||||
if(info.Address >= 0) {
|
||||
ctrlLabelList.EditLabel((UInt32)info.Address, info.Type);
|
||||
} else {
|
||||
ctrlLabelList.EditLabel((UInt32)_lastClickedAddress, AddressType.Register);
|
||||
}
|
||||
} else if(_lastClickedLabel != null) {
|
||||
ctrlLabelList.EditLabel(_lastClickedLabel.Address, _lastClickedLabel.AddressType);
|
||||
|
|
Loading…
Add table
Reference in a new issue