ISO: Fix loading games in continuous mode

Some games will load into another game and continuous mode will be set.
Currently, if this happens the ISO will get unloaded in the shutdown
function. This commit adds an additional check before calling the unload
function to fix this.
This commit is contained in:
Functionable 2026-01-07 18:18:14 +00:00 committed by Elad
parent fa11af1cba
commit 095f433f8e

View file

@ -3886,7 +3886,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
disc.clear();
klic.clear();
hdd1.clear();
unload_iso();
init_mem_containers = nullptr;
m_config_path.clear();
m_config_mode = cfg_mode::custom;
@ -3896,6 +3895,11 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
m_emu_state_close_pending = false;
m_precompilation_option = {};
if (!m_continuous_mode)
{
unload_iso();
}
initialize_timebased_time(0, true);
// Complete the operation