From 3e3f9565ec784f99d8f143bb21f2f5206d41ab14 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 28 Dec 2018 19:12:30 +0100 Subject: Qt/Debugger: Add Show in Code / Show in Memory --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp') diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index af39c061e1..ab4e4d347e 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -224,6 +224,9 @@ void CodeViewWidget::OnContextMenu() auto* copy_line_action = menu->addAction(tr("Copy code &line"), this, &CodeViewWidget::OnCopyCode); auto* copy_hex_action = menu->addAction(tr("Copy &hex"), this, &CodeViewWidget::OnCopyHex); + + menu->addAction(tr("Show in &memory"), this, &CodeViewWidget::OnShowInMemory); + menu->addSeparator(); auto* symbol_rename_action = @@ -267,6 +270,11 @@ void CodeViewWidget::OnCopyAddress() QApplication::clipboard()->setText(QStringLiteral("%1").arg(addr, 8, 16, QLatin1Char('0'))); } +void CodeViewWidget::OnShowInMemory() +{ + emit ShowMemory(GetContextAddress()); +} + void CodeViewWidget::OnCopyCode() { const u32 addr = GetContextAddress(); -- cgit v1.2.3