From cacb852a1e4b37178dc300026e0a10b2c205ea00 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 14 May 2021 11:21:22 +0300 Subject: [PATCH] Emulation stopping bugfix --- rpcs3/Emu/Cell/PPUThread.cpp | 2 +- rpcs3/Emu/Cell/SPURecompiler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 468b962bea..dcba123184 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -953,7 +953,7 @@ void ppu_thread::cpu_task() // Wait until the progress dialog is closed. // We don't want to open a cell dialog while a native progress dialog is still open. - g_progr_ptotal.wait(0); + thread_ctrl::wait_on(g_progr_ptotal, 0); g_fxo->get().skip_the_progress_dialog = true; break; diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 8e9400e02d..27b9d7d9d2 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -421,7 +421,7 @@ void spu_cache::initialize() if (g_cfg.core.spu_decoder == spu_decoder_type::asmjit || g_cfg.core.spu_decoder == spu_decoder_type::llvm) { // Initialize progress dialog (wait for previous progress done) - g_progr_ptotal.wait(0); + thread_ctrl::wait_on(g_progr_ptotal, 0); g_progr_ptotal += ::size32(func_list); progr.emplace("Building SPU cache...");