mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 10:20:57 +00:00
Take out MODE_EXIT
This commit is contained in:
parent
dda574ddf1
commit
10c801b64e
@ -111,11 +111,6 @@ static void rarch_get_environment_console(void)
|
||||
#define rarch_get_environment_console() (void)0
|
||||
#endif
|
||||
|
||||
#if defined(RARCH_CONSOLE) || defined(__QNX__) || defined(ANDROID)
|
||||
#define attempt_load_game_fails (1ULL << MODE_MENU_PREINIT)
|
||||
#else
|
||||
#define attempt_load_game_fails (1ULL << MODE_EXIT)
|
||||
#endif
|
||||
|
||||
static retro_keyboard_event_t key_event;
|
||||
|
||||
@ -179,16 +174,13 @@ static int main_entry_iterate_load_content(args_type() args)
|
||||
}
|
||||
else
|
||||
{
|
||||
// If ROM load fails, we exit RetroArch. On console it might make more sense to go back to menu though ...
|
||||
g_extern.lifecycle_state = attempt_load_game_fails;
|
||||
|
||||
if (g_extern.lifecycle_state & (1ULL << MODE_EXIT))
|
||||
{
|
||||
if (frontend_ctx && frontend_ctx->shutdown)
|
||||
frontend_ctx->shutdown(true);
|
||||
|
||||
return 1;
|
||||
}
|
||||
#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);
|
||||
|
@ -93,7 +93,6 @@ enum menu_enums
|
||||
MODE_GAME = 0,
|
||||
MODE_LOAD_GAME,
|
||||
MODE_MENU,
|
||||
MODE_EXIT,
|
||||
MODE_MENU_WIDESCREEN,
|
||||
MODE_MENU_HD,
|
||||
MODE_MENU_PREINIT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user