Refactor more direct manipulation of g_extern.lifecycle_state
This commit is contained in:
parent
74ddc9c3b7
commit
5a5d58d8e8
|
@ -1938,7 +1938,7 @@ static int menu_action_ok(const char *dir,
|
|||
fill_pathname_join(image, dir, path, sizeof(image));
|
||||
rarch_disk_control_append_image(image);
|
||||
|
||||
g_extern.lifecycle_state |= 1ULL << MODE_GAME;
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
|
||||
menu_flush_stack_type(driver.menu->menu_stack,MENU_SETTINGS);
|
||||
return -1;
|
||||
|
|
|
@ -341,7 +341,9 @@ static int menu_lakka_iterate(unsigned action)
|
|||
global_alpha = 0.0;
|
||||
if (g_extern.main_is_init && !g_extern.libretro_dummy
|
||||
&& strcmp(g_extern.fullpath, active_item->rom) == 0)
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
{
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
}
|
||||
else
|
||||
{
|
||||
strlcpy(g_extern.fullpath, active_item->rom, sizeof(g_extern.fullpath));
|
||||
|
|
|
@ -1012,7 +1012,7 @@ static int lakka_input_postprocess(uint64_t old_state)
|
|||
!g_extern.libretro_dummy)
|
||||
{
|
||||
global_alpha = 0;
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ static int rmenu_xui_input_postprocess(uint64_t old_state)
|
|||
if ((driver.menu->trigger_state & (1ULL << RARCH_MENU_TOGGLE)) &&
|
||||
g_extern.main_is_init)
|
||||
{
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
rarch_main_command(RARCH_CMD_RESUME);
|
||||
process_input_ret = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue