mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoCommon/Fifo: Pass Core::System to methods.
This commit is contained in:
parent
5624dd6d39
commit
ceae4242fc
8 changed files with 76 additions and 82 deletions
|
@ -114,10 +114,11 @@ 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;
|
||||
auto& fifo = Core::System::GetInstance().GetFifo();
|
||||
fifo.PauseAndLock(true, was_running);
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& fifo = system.GetFifo();
|
||||
fifo.PauseAndLock(system, true, was_running);
|
||||
f();
|
||||
fifo.PauseAndLock(false, was_running);
|
||||
fifo.PauseAndLock(system, false, was_running);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue