diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-07-16 14:32:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 14:32:21 -0400 |
| commit | c2bace5967384140a67c1b1529f9b3fb3dddf83f (patch) | |
| tree | fb2fa880d6efd59949f1f129078d13a7d94d6a6e /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | 5674afa63d86308caa5a1a0cbebac7dd3ab031e9 (diff) | |
| parent | d53e766d6595d8cdd74f1f8316c82f7fa9e7bb3e (diff) | |
Merge pull request #13798 from TryTwo/PR_CodeWidget_NoUpdate
CodeWidget: Add button that locks the view's address
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index e555054938..a430be15a3 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -181,11 +181,13 @@ CodeViewWidget::CodeViewWidget() &CodeViewWidget::OnDebugFontChanged); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this] { - m_address = m_system.GetPPCState().pc; + if (!m_lock_address && Core::GetState(m_system) == Core::State::Paused) + m_address = m_system.GetPPCState().pc; Update(); }); connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] { - m_address = m_system.GetPPCState().pc; + if (!m_lock_address && Core::GetState(m_system) == Core::State::Paused) + m_address = m_system.GetPPCState().pc; Update(); }); connect(Host::GetInstance(), &Host::PPCSymbolsChanged, this, @@ -538,6 +540,11 @@ u32 CodeViewWidget::GetAddress() const return m_address; } +void CodeViewWidget::OnLockAddress(bool lock) +{ + m_lock_address = lock; +} + void CodeViewWidget::SetAddress(u32 address, SetAddressUpdate update) { if (m_address == address) |
