summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2022-05-27 17:34:47 -0700
committerTryTwo <taolas@gmail.com>2022-06-01 01:53:15 -0700
commit177dae6a1aafdbe3d0cba01cb7f8c4e1001a584e (patch)
tree0be9e6da1242437cc8e89a0e34602df051952efa /Source/Core/DolphinQt/Debugger/WatchWidget.cpp
parent70bf89fa59e3bd48633677374ca26124d36ff7e5 (diff)
Add options for BreakpointWidget, WatchWidget, and CheatSearches to send address to Memory Widget
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.cpp6
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());