mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-12 11:40:16 +01:00
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:
parent
fa11af1cba
commit
095f433f8e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue