(RMenu) Have RMenu act exactly like RGUI - pressing Back in

LIBRETRO_CHOICE goes back to menu - you can now press left/right
in History list
This commit is contained in:
twinaphex 2013-09-29 03:23:25 +02:00
parent 91f2d76fbe
commit bc152410ef

View File

@ -811,6 +811,9 @@ static int select_file(void *data, uint64_t action)
}
break;
case RGUI_ACTION_CANCEL:
if (rgui->menu_type == LIBRETRO_CHOICE)
pop_menu_stack = true;
else
{
char tmp_str[PATH_MAX];
fill_pathname_parent_dir(tmp_str, rgui->browser->current_dir.directory_path, sizeof(tmp_str));
@ -2613,6 +2616,15 @@ static int ingame_menu_history_options(void *data, uint64_t action)
if (hist_opt_selected >= history_size)
hist_opt_selected = 0;
break;
case RGUI_ACTION_LEFT:
if (hist_opt_selected <= 5)
hist_opt_selected = 0;
else
hist_opt_selected -= 5;
break;
case FILEBROWSER_ACTION_RIGHT:
hist_opt_selected = (min(hist_opt_selected + 5, history_size-1));
break;
case RGUI_ACTION_CANCEL:
menu_stack_pop(rgui->menu_type);
break;