Add log message if game ignores exit game request

This commit is contained in:
Megamouse 2025-05-07 20:40:01 +02:00
parent 58adf0c3c1
commit 1d26f34f44

View file

@ -2922,6 +2922,11 @@ void Emulator::GracefulShutdown(bool allow_autoexit, bool async_op, bool savesta
if (old_state == system_state::frozen || savestate || !sysutil_send_system_cmd(0x0101 /* CELL_SYSUTIL_REQUEST_EXITGAME */, 0))
{
if (old_state != system_state::frozen && !savestate)
{
sys_log.warning("The running game ignored the exit request. Forcing termination...");
}
// The callback has been rudely ignored, we have no other option but to force termination
Kill(allow_autoexit && !savestate, savestate);