diff options
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 870c3c3665..e0573f39d4 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -310,6 +310,7 @@ void WatchWidget::ShowContextMenu() if (row >= 0) { + menu->addAction(tr("Show in Memory"), this, [this, row] { ShowInMemory(row); }); // i18n: This kind of "watch" is used for watching emulated memory. // It's not related to timekeeping devices. menu->addAction(tr("&Delete Watch"), this, [this, row] { DeleteWatch(row); }); @@ -395,6 +396,11 @@ void WatchWidget::AddWatchBreakpoint(int row) emit RequestMemoryBreakpoint(PowerPC::debug_interface.GetWatch(row).address); } +void WatchWidget::ShowInMemory(int row) +{ + emit ShowMemory(PowerPC::debug_interface.GetWatch(row).address); +} + void WatchWidget::AddWatch(QString name, u32 addr) { PowerPC::debug_interface.SetWatch(addr, name.toStdString()); |
