mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Core::GetState: Avoid Global System Accessor
This commit is contained in:
@ -103,8 +103,8 @@ static void RunWithGPUThreadInactive(std::function<void()> f)
|
||||
// (Note that this case cannot be reached in single core mode, because in single core mode,
|
||||
// the CPU and GPU threads are the same thread, and we already checked for the GPU thread.)
|
||||
|
||||
const bool was_running = Core::GetState() == Core::State::Running;
|
||||
auto& system = Core::System::GetInstance();
|
||||
const bool was_running = Core::GetState(system) == Core::State::Running;
|
||||
auto& fifo = system.GetFifo();
|
||||
fifo.PauseAndLock(true, was_running);
|
||||
f();
|
||||
|
Reference in New Issue
Block a user