mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Try to have a more robust fallback path for
menu_displaylist_parse_generic
This commit is contained in:
parent
a5e35e7193
commit
af12858953
@ -1252,15 +1252,12 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
|||||||
size_t selection = menu_navigation_get_selection();
|
size_t selection = menu_navigation_get_selection();
|
||||||
|
|
||||||
if (!playlist)
|
if (!playlist)
|
||||||
return -1;
|
goto error;
|
||||||
|
|
||||||
list_size = playlist_size(playlist);
|
list_size = playlist_size(playlist);
|
||||||
|
|
||||||
if (list_size == 0)
|
if (list_size == 0)
|
||||||
{
|
goto error;
|
||||||
info->need_push_no_playlist_entries = true;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!string_is_empty(info->path))
|
if (!string_is_empty(info->path))
|
||||||
{
|
{
|
||||||
@ -1358,6 +1355,10 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
error:
|
||||||
|
info->need_push_no_playlist_entries = true;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
|
static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user