mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-01 07:38:38 +00:00
(menu) Tell the user about the directory listing error
This commit is contained in:
parent
67ffac265b
commit
fab2b1055f
@ -246,7 +246,14 @@ static int menu_displaylist_parse(menu_displaylist_info_t *info, bool *need_sort
|
||||
MENU_FILE_USE_DIRECTORY, 0);
|
||||
|
||||
if (!str_list)
|
||||
return -1;
|
||||
{
|
||||
const char *str = path_is_compressed
|
||||
? "Unable to read compressed file"
|
||||
: "Directory not found";
|
||||
|
||||
menu_list_push(info->list, str, "", 0, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
dir_list_sort(str_list, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user