mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Frontend) Remove ifdef
This commit is contained in:
parent
c55a0885c7
commit
4f7ebbd964
@ -139,6 +139,12 @@ static void rarch_get_environment_console(void)
|
|||||||
#define rarch_get_environment_console() (void)0
|
#define rarch_get_environment_console() (void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(RARCH_CONSOLE) || defined(__QNX__)
|
||||||
|
#define attempt_load_game_fails (1ULL << MODE_MENU)
|
||||||
|
#else
|
||||||
|
#define attempt_load_game_fails (1ULL << MODE_EXIT)
|
||||||
|
#endif
|
||||||
|
|
||||||
returntype main_entry(signature())
|
returntype main_entry(signature())
|
||||||
{
|
{
|
||||||
void *args = NULL;
|
void *args = NULL;
|
||||||
@ -193,14 +199,15 @@ returntype main_entry(signature())
|
|||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
|
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if defined(RARCH_CONSOLE) || defined(__QNX__)
|
g_extern.lifecycle_mode_state = attempt_load_game_fails;
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU);
|
|
||||||
#else
|
|
||||||
if (frontend_ctx && frontend_ctx->shutdown)
|
|
||||||
frontend_ctx->shutdown(true);
|
|
||||||
|
|
||||||
return_negative();
|
if (g_extern.lifecycle_mode_state & (1ULL << MODE_EXIT))
|
||||||
#endif
|
{
|
||||||
|
if (frontend_ctx && frontend_ctx->shutdown)
|
||||||
|
frontend_ctx->shutdown(true);
|
||||||
|
|
||||||
|
return_negative();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_LOAD_GAME);
|
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_LOAD_GAME);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user