mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-17 00:07:44 +00:00
Merge pull request #1695 from heuripedes/master
(menu) Tell the user about the directory listing error
This commit is contained in:
commit
6cedc39ded
@ -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…
x
Reference in New Issue
Block a user