Merge pull request #12886 from AdmiralCurtiss/dual-core-lockup

Core/VideoCommon: Revert change from #12828
This commit is contained in:
OatmealDome 2024-06-22 22:22:52 -04:00 committed by GitHub
commit 883195f171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -66,12 +66,15 @@ void VideoConfig::Refresh()
CPUThreadConfigCallback::AddConfigChangedCallback([]() {
auto& system = Core::System::GetInstance();
system.GetFifo().PauseAndLock(true, false);
const bool lock_gpu_thread = Core::IsRunning(system);
if (lock_gpu_thread)
system.GetFifo().PauseAndLock(true, false);
g_Config.Refresh();
g_Config.VerifyValidity();
system.GetFifo().PauseAndLock(false, true);
if (lock_gpu_thread)
system.GetFifo().PauseAndLock(false, true);
});
s_has_registered_callback = true;
}