mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Start implementing RARCH_MENU_CTL_SET_PENDING_QUIT
This commit is contained in:
parent
2df631a36f
commit
c447f6d1bd
@ -119,7 +119,6 @@ typedef struct zarch_handle
|
|||||||
unsigned height;
|
unsigned height;
|
||||||
gfx_font_raster_block_t tmp_block;
|
gfx_font_raster_block_t tmp_block;
|
||||||
unsigned hash;
|
unsigned hash;
|
||||||
bool time_to_exit;
|
|
||||||
bool time_to_quit;
|
bool time_to_quit;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
@ -917,7 +916,7 @@ static int zarch_zui_render_pick_core(zui_t *zui)
|
|||||||
(void)ret;
|
(void)ret;
|
||||||
|
|
||||||
layout = LAY_HOME;
|
layout = LAY_HOME;
|
||||||
zui->time_to_exit = true;
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUIT, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -951,7 +950,7 @@ static int zarch_zui_render_pick_core(zui_t *zui)
|
|||||||
|
|
||||||
layout = LAY_HOME;
|
layout = LAY_HOME;
|
||||||
|
|
||||||
zui->time_to_exit = true;
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUIT, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
j++;
|
j++;
|
||||||
@ -1271,11 +1270,6 @@ static int zarch_iterate(void *data, void *userdata, enum menu_action action)
|
|||||||
if (perform_action)
|
if (perform_action)
|
||||||
ret = menu_entry_action(&entry, action_id, act);
|
ret = menu_entry_action(&entry, action_id, act);
|
||||||
|
|
||||||
if (zui->time_to_exit)
|
|
||||||
{
|
|
||||||
zui->time_to_exit = false;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (zui->time_to_quit)
|
if (zui->time_to_quit)
|
||||||
{
|
{
|
||||||
zui->time_to_quit = false;
|
zui->time_to_quit = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user