Add more logging for Emulator Stop events

This should give us more insight into the conditions that cause emulation stops.
This may also help find false issue reports.
This commit is contained in:
Megamouse 2021-10-31 03:13:37 +01:00
parent 33e80a733d
commit f258ae795c
8 changed files with 62 additions and 12 deletions

View file

@ -5,6 +5,8 @@
#include "Emu/RSX/Overlays/overlay_message_dialog.h"
#include "Emu/System.h"
LOG_CHANNEL(sys_log, "SYS");
// Progress display server synchronization variables
atomic_t<const char*> g_progr{nullptr};
atomic_t<u32> g_progr_ftotal{0};
@ -90,6 +92,7 @@ void progress_dialog_server::operator()()
Emu.CallAfter([]()
{
// Abort everything
sys_log.notice("Aborted progress dialog");
Emu.Stop();
});