Clean up old game window in case of unexpected errors

This commit is contained in:
Megamouse 2025-01-04 14:23:10 +01:00
parent 3ce4c95e61
commit cc7e7300ce
6 changed files with 33 additions and 0 deletions

View file

@ -966,6 +966,11 @@ game_boot_result Emulator::BootGame(const std::string& path, const std::string&
std::tie(m_path, m_path_original, argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_path) = std::move(save_args);
};
}
if (result != game_boot_result::no_errors)
{
GetCallbacks().close_gs_frame();
}
}
return result;