diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-07 02:39:17 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-31 15:37:34 -0700 |
| commit | 8bdfdc88b241e5f32177f434fc42f19dd9dd3c26 (patch) | |
| tree | 1343c3f8ae4204c10af5a3866faffed19956ec83 /Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | |
| parent | e4500b57984d0a83049e43ca6c6ef2b6a739bd11 (diff) | |
Branch Watch Tool: Ignore Apploader Branch Hits Concurrency Fix
Also removed worthless `Start` and `Pause` helpers from `Core::BranchWatch`.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index 39e7748df4..aef6f18cc3 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -516,7 +516,6 @@ BranchWatchDialog::~BranchWatchDialog() } static constexpr int BRANCH_WATCH_TOOL_TIMER_DELAY_MS = 100; -static constexpr int BRANCH_WATCH_TOOL_TIMER_PAUSE_ONESHOT_MS = 200; static bool TimerCondition(const Core::BranchWatch& branch_watch, Core::State state) { @@ -537,23 +536,18 @@ void BranchWatchDialog::showEvent(QShowEvent* event) void BranchWatchDialog::OnStartPause(bool checked) const { + m_branch_watch.SetRecordingActive(Core::CPUThreadGuard{m_system}, checked); if (checked) { - m_branch_watch.Start(); m_btn_start_pause->setText(tr("Pause Branch Watch")); - // Restart the timer if the situation calls for it, but always turn off single-shot. - m_timer->setSingleShot(false); if (Core::GetState(m_system) > Core::State::Paused) m_timer->start(BRANCH_WATCH_TOOL_TIMER_DELAY_MS); } else { - m_branch_watch.Pause(); m_btn_start_pause->setText(tr("Start Branch Watch")); - // Schedule one last update in the future in case Branch Watch is in the middle of a hit. - if (Core::GetState(m_system) > Core::State::Paused) - m_timer->setInterval(BRANCH_WATCH_TOOL_TIMER_PAUSE_ONESHOT_MS); - m_timer->setSingleShot(true); + if (m_timer->isActive()) + m_timer->stop(); } Update(); } |
