diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-04-09 04:14:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-09 04:14:39 +0200 |
| commit | 629935ef1164103982f29a129ee6e007eb55e322 (patch) | |
| tree | 72308538d75942206b415a0b9fc50b4cc7d09533 /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | |
| parent | db0cd82326a13febb1104efbfd9af9ad5ac2c494 (diff) | |
| parent | eb92d6f0a8c930692de64bd41c5ddee403771023 (diff) | |
Merge pull request #12669 from mitaclaw/core-global-system-3
Core::GetState: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp index 3ba804acb1..09f7771ba6 100644 --- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp @@ -252,13 +252,14 @@ void ThreadWidget::Update() if (!isVisible()) return; - const auto emu_state = Core::GetState(); + auto& system = Core::System::GetInstance(); + const auto emu_state = Core::GetState(system); if (emu_state == Core::State::Stopping) { m_thread_table->setRowCount(0); UpdateThreadContext({}); - Core::CPUThreadGuard guard(Core::System::GetInstance()); + const Core::CPUThreadGuard guard(system); UpdateThreadCallstack(guard, {}); } if (emu_state != Core::State::Paused) @@ -303,7 +304,7 @@ void ThreadWidget::Update() }; { - Core::CPUThreadGuard guard(Core::System::GetInstance()); + const Core::CPUThreadGuard guard(system); // YAGCD - Section 4.2.1.4 Dolphin OS Globals m_current_context->setText(format_hex_from(guard, 0x800000D4)); |
