mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-13 22:31:57 +00:00
Simplifications
This commit is contained in:
parent
eab8890ecf
commit
6d277de62b
@ -3169,15 +3169,11 @@ static int menu_displaylist_parse_playlists(
|
||||
|
||||
if (list_size == 0)
|
||||
{
|
||||
if (!horizontal)
|
||||
menu_entries_append_enum(info->list,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||
MENU_ENUM_LABEL_NO_ITEMS,
|
||||
MENU_SETTING_NO_ITEM, 0, 0);
|
||||
|
||||
string_list_free(str_list);
|
||||
|
||||
if (!horizontal)
|
||||
goto no_playlists;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -3217,15 +3213,17 @@ static int menu_displaylist_parse_playlists(
|
||||
string_list_free(str_list);
|
||||
|
||||
if (items_found == 0)
|
||||
{
|
||||
menu_entries_append_enum(info->list,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||
MENU_ENUM_LABEL_NO_ITEMS,
|
||||
MENU_SETTING_NO_ITEM, 0, 0);
|
||||
}
|
||||
goto no_playlists;
|
||||
|
||||
return 0;
|
||||
|
||||
no_playlists:
|
||||
menu_entries_append_enum(info->list,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||
MENU_ENUM_LABEL_NO_ITEMS,
|
||||
MENU_SETTING_NO_ITEM, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int menu_displaylist_parse_generic(
|
||||
|
Loading…
x
Reference in New Issue
Block a user