summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-12-14 16:14:57 -0500
committerLioncash <mai.iam2048@gmail.com>2023-12-14 16:14:59 -0500
commit1573b50bb330aede1e0472e0220ccb99098fbf08 (patch)
tree5f4348aad184456f0b95122c6338e314edcdfea1 /Source/Core
parent84ac561e46bdd62cb362e548fecaa74b50e2f05b (diff)
HW/CPU: Remove remaining global system accessors
We can just pass in the m_system member instead.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/CPU.cpp5
1 files 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()