(RMenu) Fix - Pops menu stack for a submenu - hack - needs a cleaner implementation

This commit is contained in:
twinaphex 2013-04-09 09:16:23 +02:00
parent 56de3696d0
commit 6a845dec64
1 changed files with 10 additions and 0 deletions

View File

@ -3115,6 +3115,16 @@ static int menu_input_process(uint8_t menu_type, uint64_t old_state)
if (return_to_game_enable)
{
/* TODO : need to make a 'parent' menu_type of some sort so that we have
* a cleaner way of telling RMenu that the menu stack should be popped
* for a submenu when doing the menu quit hotkey */
if (menu_type == INGAME_MENU_CORE_OPTIONS | menu_type == INGAME_MENU_RESIZE
|| menu_type == LIBRETRO_CHOICE)
{
menu_stack_pop();
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_DRAW);
}
int ret = -1;
if (g_extern.lifecycle_mode_state & (1ULL << MODE_MENU_INGAME))
{