mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(XMB) Fix switch fall-through
This commit is contained in:
parent
5130646630
commit
c66222bd0c
@ -649,7 +649,9 @@ static int menu_common_iterate(unsigned action)
|
||||
break;
|
||||
case MENU_ACTION_LEFT:
|
||||
case MENU_ACTION_RIGHT:
|
||||
if (file_list_get_size(driver.menu->menu_list->menu_stack) == 1 && !strcmp(driver.menu_ctx->ident, "xmb"))
|
||||
if ((action == MENU_ACTION_LEFT || action == MENU_ACTION_RIGHT)
|
||||
&& file_list_get_size(driver.menu->menu_list->menu_stack) == 1
|
||||
&& !strcmp(driver.menu_ctx->ident, "xmb"))
|
||||
{
|
||||
if ((action == MENU_ACTION_LEFT && driver.menu->cat_selection_ptr == 0)
|
||||
|| (action == MENU_ACTION_RIGHT && driver.menu->cat_selection_ptr == g_extern.core_info->count))
|
||||
|
@ -1673,7 +1673,7 @@ static void content_list_push(void *data, core_info_t *info, const char* path)
|
||||
if (list->elems[j].attr.i == RARCH_DIRECTORY) // is a directory
|
||||
content_list_push(flist, info, list->elems[j].data);
|
||||
else
|
||||
menu_list_push(flist, path_basename(list->elems[j].data), "", MENU_FILE_PLAYLIST_ENTRY, 0);
|
||||
menu_list_push(flist, path_basename(list->elems[j].data), "", MENU_FILE_PLAIN, 0);
|
||||
}
|
||||
|
||||
string_list_free(list);
|
||||
@ -1715,7 +1715,7 @@ static int deferred_push_content_list(void *data, void *userdata,
|
||||
if (!info->supports_no_game)
|
||||
content_list_push(list, info, g_settings.content_directory);
|
||||
else
|
||||
menu_list_push(list, info->display_name, "", MENU_FILE_PLAYLIST_ENTRY, 0);
|
||||
menu_list_push(list, info->display_name, "", MENU_FILE_PLAIN, 0);
|
||||
|
||||
driver.menu->scroll_indices_size = 0;
|
||||
menu_entries_build_scroll_indices(list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user