VideoCommon/Fifo: Refactor to class, move to Core::System.

This commit is contained in:
Admiral H. Curtiss
2022-12-09 20:01:25 +01:00
parent d250e69ddf
commit 5624dd6d39
18 changed files with 377 additions and 300 deletions

View File

@ -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
{