Fix consistency in Emu::Stop()

Don't clear force_boot on shortcut Load()
This commit is contained in:
Nekotekina 2018-09-25 21:12:17 +03:00
parent b2f29cd4d4
commit 680aaf21f0

View File

@ -1351,12 +1351,13 @@ void Emulator::Stop(bool restart)
{
if (m_state.exchange(system_state::stopped) == system_state::stopped)
{
m_force_boot = false;
if (restart)
{
return Load();
}
m_force_boot = false;
return;
}
const bool do_exit = !restart && !m_force_boot && g_cfg.misc.autoexit;