mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #3409 from sepalani/r_menu_code
RegisterView: View code menu added
This commit is contained in:
commit
066af14272
@ -27,6 +27,7 @@ enum
|
|||||||
{
|
{
|
||||||
IDM_WATCHADDRESS,
|
IDM_WATCHADDRESS,
|
||||||
IDM_VIEWMEMORY,
|
IDM_VIEWMEMORY,
|
||||||
|
IDM_VIEWCODE
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *special_reg_names[] = {
|
static const char *special_reg_names[] = {
|
||||||
@ -268,6 +269,7 @@ void CRegisterView::OnMouseDownR(wxGridEvent& event)
|
|||||||
wxMenu menu;
|
wxMenu menu;
|
||||||
menu.Append(IDM_WATCHADDRESS, _("Add to &watch"));
|
menu.Append(IDM_WATCHADDRESS, _("Add to &watch"));
|
||||||
menu.Append(IDM_VIEWMEMORY, _("View &memory"));
|
menu.Append(IDM_VIEWMEMORY, _("View &memory"));
|
||||||
|
menu.Append(IDM_VIEWCODE, _("View &code"));
|
||||||
PopupMenu(&menu);
|
PopupMenu(&menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,6 +293,10 @@ void CRegisterView::OnPopupMenu(wxCommandEvent& event)
|
|||||||
memory_window->JumpToAddress(m_selectedAddress);
|
memory_window->JumpToAddress(m_selectedAddress);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
|
case IDM_VIEWCODE:
|
||||||
|
code_window->JumpToAddress(m_selectedAddress);
|
||||||
|
Refresh();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user