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
commit 5624dd6d39
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
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
{