Fix Emu.Restart()

This commit is contained in:
Megamouse 2018-09-19 20:54:55 +02:00 committed by Ani
parent 0da556e1f8
commit b7e010bbd0

View File

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