mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Remove SL_FLAG_ALLOW_EMPTY_LIST
This commit is contained in:
parent
66df62938c
commit
840ff59dd0
@ -1271,8 +1271,8 @@ static void xmb_init_horizontal_list(xmb_handle_t *xmb)
|
|||||||
info.list = xmb->horizontal_list;
|
info.list = xmb->horizontal_list;
|
||||||
info.menu_list = NULL;
|
info.menu_list = NULL;
|
||||||
info.type = 0;
|
info.type = 0;
|
||||||
|
info.flags = 0;
|
||||||
info.type_default = FILE_TYPE_PLAIN;
|
info.type_default = FILE_TYPE_PLAIN;
|
||||||
info.flags = SL_FLAG_ALLOW_EMPTY_LIST;
|
|
||||||
info.enum_idx = MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST;
|
info.enum_idx = MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST;
|
||||||
strlcpy(info.label,
|
strlcpy(info.label,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
||||||
|
@ -3243,15 +3243,12 @@ static int menu_displaylist_parse_playlists_horizontal(
|
|||||||
list_size = str_list->size;
|
list_size = str_list->size;
|
||||||
|
|
||||||
if (list_size == 0)
|
if (list_size == 0)
|
||||||
{
|
|
||||||
if (!(info->flags & SL_FLAG_ALLOW_EMPTY_LIST))
|
|
||||||
{
|
{
|
||||||
menu_entries_add_enum(info->list,
|
menu_entries_add_enum(info->list,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||||
MENU_ENUM_LABEL_NO_ITEMS,
|
MENU_ENUM_LABEL_NO_ITEMS,
|
||||||
MENU_SETTING_NO_ITEM, 0, 0);
|
MENU_SETTING_NO_ITEM, 0, 0);
|
||||||
}
|
|
||||||
|
|
||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
@ -3294,8 +3291,6 @@ static int menu_displaylist_parse_playlists_horizontal(
|
|||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
if (items_found == 0)
|
if (items_found == 0)
|
||||||
{
|
|
||||||
if (!(info->flags & SL_FLAG_ALLOW_EMPTY_LIST))
|
|
||||||
{
|
{
|
||||||
menu_entries_add_enum(info->list,
|
menu_entries_add_enum(info->list,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||||
@ -3303,7 +3298,6 @@ static int menu_displaylist_parse_playlists_horizontal(
|
|||||||
MENU_ENUM_LABEL_NO_ITEMS,
|
MENU_ENUM_LABEL_NO_ITEMS,
|
||||||
MENU_SETTING_NO_ITEM, 0, 0);
|
MENU_SETTING_NO_ITEM, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -3386,8 +3380,6 @@ static int menu_displaylist_parse_generic(
|
|||||||
list_size = str_list->size;
|
list_size = str_list->size;
|
||||||
|
|
||||||
if (list_size == 0)
|
if (list_size == 0)
|
||||||
{
|
|
||||||
if (!(info->flags & SL_FLAG_ALLOW_EMPTY_LIST))
|
|
||||||
{
|
{
|
||||||
menu_entries_add_enum(info->list,
|
menu_entries_add_enum(info->list,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||||
@ -3402,7 +3394,6 @@ static int menu_displaylist_parse_generic(
|
|||||||
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
|
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
@ -3533,15 +3524,12 @@ static int menu_displaylist_parse_generic(
|
|||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
if (items_found == 0)
|
if (items_found == 0)
|
||||||
{
|
|
||||||
if (!(info->flags & SL_FLAG_ALLOW_EMPTY_LIST))
|
|
||||||
{
|
{
|
||||||
menu_entries_add_enum(info->list,
|
menu_entries_add_enum(info->list,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||||
MENU_ENUM_LABEL_NO_ITEMS,
|
MENU_ENUM_LABEL_NO_ITEMS,
|
||||||
MENU_SETTING_NO_ITEM, 0, 0);
|
MENU_SETTING_NO_ITEM, 0, 0);
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -112,8 +112,7 @@ enum setting_list_flags
|
|||||||
SL_FLAG_SETTINGS_LOGGING_OPTIONS = (1 << 27),
|
SL_FLAG_SETTINGS_LOGGING_OPTIONS = (1 << 27),
|
||||||
SL_FLAG_SETTINGS_SAVING_OPTIONS = (1 << 28),
|
SL_FLAG_SETTINGS_SAVING_OPTIONS = (1 << 28),
|
||||||
SL_FLAG_SETTINGS_SUB_ACCOUNTS_OPTIONS = (1 << 29),
|
SL_FLAG_SETTINGS_SUB_ACCOUNTS_OPTIONS = (1 << 29),
|
||||||
SL_FLAG_SETTINGS_ALL = (1 << 30),
|
SL_FLAG_SETTINGS_ALL = (1 << 30)
|
||||||
SL_FLAG_ALLOW_EMPTY_LIST = (1 << 31)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct rarch_setting_group_info rarch_setting_group_info_t;
|
typedef struct rarch_setting_group_info rarch_setting_group_info_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user