mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoCommon/Fifo: Refactor to class, move to Core::System.
This commit is contained in:
@ -114,9 +114,10 @@ static void RunWithGPUThreadInactive(std::function<void()> f)
|
||||
// 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;
|
||||
Fifo::PauseAndLock(true, was_running);
|
||||
auto& fifo = Core::System::GetInstance().GetFifo();
|
||||
fifo.PauseAndLock(true, was_running);
|
||||
f();
|
||||
Fifo::PauseAndLock(false, was_running);
|
||||
fifo.PauseAndLock(false, was_running);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user