mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
(Menu/disp) Use rarch_main_command
This commit is contained in:
parent
fcacc46ef5
commit
85fca42b42
@ -643,7 +643,7 @@ static void *rgui_init(void)
|
||||
RARCH_ERR("No font bitmap or binary, abort");
|
||||
/* TODO - should be refactored - perhaps don't do rarch_fail but instead
|
||||
* exit program */
|
||||
g_extern.lifecycle_state &= ~((1ULL << MODE_MENU) | (1ULL << MODE_GAME));
|
||||
rarch_main_command(RARCH_CMD_QUIT_RETROARCH);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -666,7 +666,7 @@ static int rgui_input_postprocess(uint64_t old_state)
|
||||
g_extern.main_is_init &&
|
||||
!g_extern.libretro_dummy)
|
||||
{
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -508,7 +508,7 @@ static int rmenu_input_postprocess(uint64_t old_state)
|
||||
g_extern.main_is_init &&
|
||||
!g_extern.libretro_dummy)
|
||||
{
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user