mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Add log message if game ignores exit game request
This commit is contained in:
parent
58adf0c3c1
commit
1d26f34f44
1 changed files with 6 additions and 1 deletions
|
@ -2873,7 +2873,7 @@ void Emulator::GracefulShutdown(bool allow_autoexit, bool async_op, bool savesta
|
||||||
Emu.SetContinuousMode(false);
|
Emu.SetContinuousMode(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure no game has booted inbetween
|
// Ensure no game has booted in between
|
||||||
const auto guard = Emu.MakeEmulationStateGuard();
|
const auto guard = Emu.MakeEmulationStateGuard();
|
||||||
|
|
||||||
stop_counter_t old_emu_id{};
|
stop_counter_t old_emu_id{};
|
||||||
|
@ -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 || !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
|
// The callback has been rudely ignored, we have no other option but to force termination
|
||||||
Kill(allow_autoexit && !savestate, savestate);
|
Kill(allow_autoexit && !savestate, savestate);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue