diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-12-28 19:12:30 +0100 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-12-28 20:30:38 +0100 |
| commit | 3e3f9565ec784f99d8f143bb21f2f5206d41ab14 (patch) | |
| tree | b0af5e68f7340de3d62b3715bed367ecc7462354 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | 0a8e04e469b30b2331096788db76be7fd6487bbe (diff) | |
Qt/Debugger: Add Show in Code / Show in Memory
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 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(); |
