mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Should add default 'no settings' entry if no settings can be
pushed for updater settings list
This commit is contained in:
parent
c06dc92c96
commit
82dd2bc64c
@ -2422,12 +2422,16 @@ loop:
|
|||||||
menu_settings_list_increment(&setting);
|
menu_settings_list_increment(&setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0 && add_empty_entry)
|
if (count == 0)
|
||||||
menu_entries_append_enum(info->list,
|
{
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
if (add_empty_entry)
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
menu_entries_append_enum(info->list,
|
||||||
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
||||||
0, 0, 0);
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
||||||
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
||||||
|
0, 0, 0);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -4624,15 +4628,28 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
info->need_push = true;
|
info->need_push = true;
|
||||||
break;
|
break;
|
||||||
case DISPLAYLIST_UPDATER_SETTINGS_LIST:
|
case DISPLAYLIST_UPDATER_SETTINGS_LIST:
|
||||||
menu_displaylist_parse_settings_enum(menu, info,
|
{
|
||||||
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
unsigned count = 0;
|
||||||
PARSE_ONLY_STRING, false);
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
||||||
menu_displaylist_parse_settings_enum(menu, info,
|
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
||||||
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
PARSE_ONLY_STRING, false) != -1)
|
||||||
PARSE_ONLY_STRING, false);
|
count++;
|
||||||
menu_displaylist_parse_settings_enum(menu, info,
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE,
|
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
||||||
PARSE_ONLY_BOOL, false);
|
PARSE_ONLY_STRING, false) != -1)
|
||||||
|
count++;
|
||||||
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
||||||
|
MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE,
|
||||||
|
PARSE_ONLY_BOOL, false) != -1)
|
||||||
|
count++;
|
||||||
|
|
||||||
|
if (count == 0)
|
||||||
|
menu_entries_append_enum(info->list,
|
||||||
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
||||||
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
||||||
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
||||||
|
0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
info->need_refresh = true;
|
info->need_refresh = true;
|
||||||
info->need_push = true;
|
info->need_push = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user