diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-03-28 11:35:13 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-08 16:23:23 -0700 |
| commit | eb92d6f0a8c930692de64bd41c5ddee403771023 (patch) | |
| tree | 72308538d75942206b415a0b9fc50b4cc7d09533 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | db0cd82326a13febb1104efbfd9af9ad5ac2c494 (diff) | |
Core::GetState: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index 730180cffd..26d6d0e053 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -267,7 +267,7 @@ void CodeViewWidget::Update() if (m_updating) return; - if (Core::GetState() == Core::State::Paused) + if (Core::GetState(m_system) == Core::State::Paused) { Core::CPUThreadGuard guard(m_system); Update(&guard); @@ -558,8 +558,8 @@ void CodeViewWidget::OnContextMenu() { QMenu* menu = new QMenu(this); - const bool running = Core::GetState() != Core::State::Uninitialized; - const bool paused = Core::GetState() == Core::State::Paused; + const bool running = Core::GetState(m_system) != Core::State::Uninitialized; + const bool paused = Core::GetState(m_system) == Core::State::Paused; const u32 addr = GetContextAddress(); @@ -761,7 +761,7 @@ void CodeViewWidget::OnCopyAddress() void CodeViewWidget::OnCopyTargetAddress() { - if (Core::GetState() != Core::State::Paused) + if (Core::GetState(m_system) != Core::State::Paused) return; const u32 addr = GetContextAddress(); @@ -791,7 +791,7 @@ void CodeViewWidget::OnShowInMemory() void CodeViewWidget::OnShowTargetInMemory() { - if (Core::GetState() != Core::State::Paused) + if (Core::GetState(m_system) != Core::State::Paused) return; const u32 addr = GetContextAddress(); |
