summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-06-02 20:50:44 +0200
committerGitHub <noreply@github.com>2022-06-02 20:50:44 +0200
commita58bb2aa24af808115836bc4bec002bef5b7628e (patch)
tree44749310c417d4ff3846929aa2738297dd119598 /Source/Core/DolphinQt/Debugger/WatchWidget.cpp
parentfc6ba6b686906140bbac16bff5e518608d02c00d (diff)
parent177dae6a1aafdbe3d0cba01cb7f8c4e1001a584e (diff)
Merge pull request #10701 from TryTwo/PR_Memory_Widget_Connections
Debugger MemoryWidget: Navigate to memory from breakpoint widget and cheat search.
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());