From 1573b50bb330aede1e0472e0220ccb99098fbf08 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Dec 2023 16:14:57 -0500 Subject: [PATCH] HW/CPU: Remove remaining global system accessors We can just pass in the m_system member instead. --- Source/Core/Core/HW/CPU.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/HW/CPU.cpp b/Source/Core/Core/HW/CPU.cpp index 8a9634d527..15237dab30 100644 --- a/Source/Core/Core/HW/CPU.cpp +++ b/Source/Core/Core/HW/CPU.cpp @@ -175,11 +175,10 @@ void CPUManager::Run() void CPUManager::RunAdjacentSystems(bool running) { // NOTE: We're assuming these will not try to call Break or EnableStepping. - auto& system = Core::System::GetInstance(); - system.GetFifo().EmulatorState(running); + m_system.GetFifo().EmulatorState(running); // Core is responsible for shutting down the sound stream. if (m_state != State::PowerDown) - AudioCommon::SetSoundStreamRunning(Core::System::GetInstance(), running); + AudioCommon::SetSoundStreamRunning(m_system, running); } void CPUManager::Stop()