diff options
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index a1ab5ee3a1..295902d264 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -229,6 +229,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 = @@ -272,6 +275,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(); |
