mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
Qt: abort batch PPU compilation on dialog cancel
This commit is contained in:
parent
6dc35a3772
commit
7aca2785b6
3 changed files with 17 additions and 2 deletions
|
@ -12,6 +12,9 @@ atomic_t<u32> g_progr_fdone{0};
|
|||
atomic_t<u32> g_progr_ptotal{0};
|
||||
atomic_t<u32> g_progr_pdone{0};
|
||||
|
||||
// For Batch PPU Compilation
|
||||
atomic_t<bool> g_system_progress_canceled{false};
|
||||
|
||||
namespace rsx::overlays
|
||||
{
|
||||
class progress_dialog : public message_dialog
|
||||
|
@ -44,6 +47,8 @@ void progress_dialog_server::operator()()
|
|||
break;
|
||||
}
|
||||
|
||||
g_system_progress_canceled = false;
|
||||
|
||||
// Initialize message dialog
|
||||
bool skip_this_one = false; // Workaround: do not open a progress dialog if there is already a cell message dialog open.
|
||||
std::shared_ptr<MsgDialogBase> dlg;
|
||||
|
@ -82,6 +87,8 @@ void progress_dialog_server::operator()()
|
|||
// Abort everything
|
||||
Emu.Stop();
|
||||
});
|
||||
|
||||
g_system_progress_canceled = true;
|
||||
};
|
||||
|
||||
Emu.CallAfter([dlg, text0]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue