mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
Add options for BreakpointWidget, WatchWidget, and CheatSearches to send address to Memory Widget
This commit is contained in:
parent
70bf89fa59
commit
177dae6a1a
9 changed files with 25 additions and 4 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "Core/PowerPC/PPCSymbolDB.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
|
||||
#include "DolphinQt/Debugger/MemoryWidget.h"
|
||||
#include "DolphinQt/Debugger/NewBreakpointDialog.h"
|
||||
#include "DolphinQt/Resources.h"
|
||||
#include "DolphinQt/Settings.h"
|
||||
|
@ -355,13 +356,13 @@ void BreakpointWidget::OnContextMenu()
|
|||
if (bp_iter == inst_breakpoints.end())
|
||||
return;
|
||||
|
||||
menu->addAction(tr("Show in Code"), [this, bp_address] { emit ShowCode(bp_address); });
|
||||
menu->addAction(bp_iter->is_enabled ? tr("Disable") : tr("Enable"), [this, &bp_address]() {
|
||||
PowerPC::breakpoints.ToggleBreakPoint(bp_address);
|
||||
|
||||
emit BreakpointsChanged();
|
||||
Update();
|
||||
});
|
||||
menu->addAction(tr("Go to"), [this, bp_address] { emit SelectedBreakpoint(bp_address); });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -372,6 +373,7 @@ void BreakpointWidget::OnContextMenu()
|
|||
if (mb_iter == memory_breakpoints.end())
|
||||
return;
|
||||
|
||||
menu->addAction(tr("Show in Memory"), [this, bp_address] { emit ShowMemory(bp_address); });
|
||||
menu->addAction(mb_iter->is_enabled ? tr("Disable") : tr("Enable"), [this, &bp_address]() {
|
||||
PowerPC::memchecks.ToggleBreakPoint(bp_address);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue