mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Cleanup main_entry_iterate_load_content
This commit is contained in:
parent
671be27367
commit
3e8715c3f3
@ -115,16 +115,9 @@ static int main_entry_iterate_content(args_type() args)
|
||||
|
||||
static int main_entry_iterate_load_content(args_type() args)
|
||||
{
|
||||
// If ROM load fails, we go back to menu.
|
||||
if (!load_menu_content())
|
||||
{
|
||||
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
||||
// If ROM load fails, we go back to menu.
|
||||
g_extern.lifecycle_state = (1ULL << MODE_MENU_PREINIT);
|
||||
#else
|
||||
// If ROM load fails, we exit RetroArch.
|
||||
g_extern.system.shutdown = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
g_extern.lifecycle_state &= ~(1ULL << MODE_LOAD_GAME);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user