Minor changes related to Emu.Stop()

This commit is contained in:
Megamouse 2020-11-24 19:13:42 +01:00
parent d8e9382573
commit 9efedbe76a
3 changed files with 14 additions and 3 deletions

View file

@ -1957,9 +1957,12 @@ void Emulator::Stop(bool restart)
// Always Enable display sleep, not only if it was prevented.
enable_display_sleep();
if (!m_force_boot && Quit(g_cfg.misc.autoexit.get()))
if (!m_force_boot)
{
return;
if (Quit(g_cfg.misc.autoexit.get()))
{
return;
}
}
m_force_boot = false;