mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
FifoManager: Remove redundant PauseAndLock parameters
PauseAndLock was only called with do_lock=true, and the function only used unpauseOnUnlock when do_lock was false.
This commit is contained in:
@@ -67,23 +67,15 @@ void FifoManager::DoState(PointerWrap& p)
|
||||
p.Do(m_syncing_suspended);
|
||||
}
|
||||
|
||||
void FifoManager::PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
||||
void FifoManager::PauseAndLock()
|
||||
{
|
||||
if (do_lock)
|
||||
{
|
||||
SyncGPU(SyncGPUReason::Other);
|
||||
EmulatorState(false);
|
||||
SyncGPU(SyncGPUReason::Other);
|
||||
EmulatorState(false);
|
||||
|
||||
if (!m_system.IsDualCoreMode() || m_use_deterministic_gpu_thread)
|
||||
return;
|
||||
if (!m_system.IsDualCoreMode() || m_use_deterministic_gpu_thread)
|
||||
return;
|
||||
|
||||
m_gpu_mainloop.WaitYield(std::chrono::milliseconds(100), Host_YieldToUI);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (unpause_on_unlock)
|
||||
EmulatorState(true);
|
||||
}
|
||||
m_gpu_mainloop.WaitYield(std::chrono::milliseconds(100), Host_YieldToUI);
|
||||
}
|
||||
|
||||
void FifoManager::RestoreState(const bool was_running)
|
||||
|
||||
Reference in New Issue
Block a user