overlays: add ppu compile message if the progress dialog is unavailable

This commit is contained in:
Megamouse 2023-02-21 02:03:01 +01:00
parent 6d7d3fff6d
commit 2d4e02f277
13 changed files with 79 additions and 38 deletions

View file

@ -4,6 +4,8 @@
#include "Emu/RSX/RSXThread.h"
#include "Emu/RSX/Overlays/overlay_manager.h"
#include "Emu/RSX/Overlays/overlay_message_dialog.h"
#include "Emu/RSX/Overlays/overlay_message.h"
#include "Emu/RSX/Overlays/overlay_compile_notification.h"
#include "Emu/System.h"
LOG_CHANNEL(sys_log, "SYS");
@ -141,7 +143,8 @@ void progress_dialog_server::operator()()
if (skip_this_one)
{
// Do nothing
// Show a message instead
rsx::overlays::show_ppu_compile_notification();
thread_ctrl::wait_for(10000);
continue;
}
@ -177,6 +180,12 @@ void progress_dialog_server::operator()()
}
}
if (skip_this_one)
{
// Make sure to update any pending messages. PPU compilation may freeze the image.
rsx::overlays::refresh_message_queue();
}
thread_ctrl::wait_for(10000);
}