mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoCommon/Fifo: Pass system instance through FifoManager constructor
Given how many member functions make use of the system instance, it's likely just better to pass the system instance in on construction. Makes the interface a little less noisy to use.
This commit is contained in:
@ -106,9 +106,9 @@ static void RunWithGPUThreadInactive(std::function<void()> f)
|
||||
const bool was_running = Core::GetState() == Core::State::Running;
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& fifo = system.GetFifo();
|
||||
fifo.PauseAndLock(system, true, was_running);
|
||||
fifo.PauseAndLock(true, was_running);
|
||||
f();
|
||||
fifo.PauseAndLock(system, false, was_running);
|
||||
fifo.PauseAndLock(false, was_running);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user