mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-04 23:29:18 +00:00
Added a "Delete watch" context menu to the Watch window.
Added a "View memory" command to the context menu.
This commit is contained in:
parent
290e1bed37
commit
b34e220086
7 changed files with 80 additions and 8 deletions
|
@ -271,7 +271,7 @@ void CRegisterView::OnMouseDownR(wxGridEvent& event)
|
|||
int col = event.GetCol();
|
||||
|
||||
wxString strNewVal = GetValueByRowCol(row, col);
|
||||
TryParse("0x" + WxStrToStr(strNewVal), &addr);
|
||||
TryParse("0x" + WxStrToStr(strNewVal), &m_selectedAddress);
|
||||
|
||||
wxMenu* menu = new wxMenu;
|
||||
menu->Append(IDM_WATCHADDRESS, _("Add to &watch"));
|
||||
|
@ -289,14 +289,14 @@ void CRegisterView::OnPopupMenu(wxCommandEvent& event)
|
|||
switch (event.GetId())
|
||||
{
|
||||
case IDM_WATCHADDRESS:
|
||||
PowerPC::watches.Add(addr);
|
||||
PowerPC::watches.Add(m_selectedAddress);
|
||||
if (watch_window)
|
||||
watch_window->NotifyUpdate();
|
||||
Refresh();
|
||||
break;
|
||||
case IDM_VIEWMEMORY:
|
||||
if (memory_window)
|
||||
memory_window->JumpToAddress(addr);
|
||||
memory_window->JumpToAddress(m_selectedAddress);
|
||||
Refresh();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue