mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Qt: fix BatchCreatePPUCaches cancel
This commit is contained in:
parent
f83a877331
commit
954d83b6a0
1 changed files with 17 additions and 1 deletions
|
@ -1632,6 +1632,7 @@ void game_list_frame::BatchCreatePPUCaches()
|
|||
pdlg->setAutoClose(false);
|
||||
pdlg->setAutoReset(false);
|
||||
pdlg->show();
|
||||
QApplication::processEvents();
|
||||
|
||||
u32 created = 0;
|
||||
|
||||
|
@ -1644,7 +1645,6 @@ void game_list_frame::BatchCreatePPUCaches()
|
|||
{
|
||||
if (pdlg->wasCanceled())
|
||||
{
|
||||
game_list_log.notice("PPU Cache Batch Creation was canceled");
|
||||
break;
|
||||
}
|
||||
QApplication::processEvents();
|
||||
|
@ -1653,12 +1653,28 @@ void game_list_frame::BatchCreatePPUCaches()
|
|||
{
|
||||
while (!Emu.IsStopped())
|
||||
{
|
||||
if (pdlg->wasCanceled())
|
||||
{
|
||||
break;
|
||||
}
|
||||
QApplication::processEvents();
|
||||
}
|
||||
pdlg->SetValue(++created);
|
||||
}
|
||||
}
|
||||
|
||||
if (pdlg->wasCanceled())
|
||||
{
|
||||
game_list_log.notice("PPU Cache Batch Creation was canceled");
|
||||
|
||||
if (!Emu.IsStopped())
|
||||
{
|
||||
QApplication::processEvents();
|
||||
Emu.Stop();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
pdlg->setLabelText(tr("Created PPU Caches for %n title(s)", "", created));
|
||||
pdlg->setCancelButtonText(tr("OK"));
|
||||
QApplication::beep();
|
||||
|
|
Loading…
Add table
Reference in a new issue