(menu displaylist) Cleanups

This commit is contained in:
twinaphex 2019-04-21 04:16:52 +02:00
parent 05b50c346d
commit 2941365741

View File

@ -4439,32 +4439,38 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
count++; count++;
break; break;
case DISPLAYLIST_ONSCREEN_DISPLAY_SETTINGS_LIST: case DISPLAYLIST_ONSCREEN_DISPLAY_SETTINGS_LIST:
if (menu_displaylist_parse_settings_enum(list, {
MENU_ENUM_LABEL_ONSCREEN_OVERLAY_SETTINGS, menu_displaylist_build_info_t build_list[] = {
PARSE_ACTION, false) == 0) {MENU_ENUM_LABEL_ONSCREEN_OVERLAY_SETTINGS, PARSE_ACTION},
count++; {MENU_ENUM_LABEL_ONSCREEN_NOTIFICATIONS_SETTINGS, PARSE_ACTION},
if (menu_displaylist_parse_settings_enum(list, };
MENU_ENUM_LABEL_ONSCREEN_NOTIFICATIONS_SETTINGS,
PARSE_ACTION, false) == 0) for (i = 0; i < ARRAY_SIZE(build_list); i++)
count++; {
if (menu_displaylist_parse_settings_enum(list,
build_list[i].enum_idx, build_list[i].parse_type,
false) == 0)
count++;
}
}
break; break;
case DISPLAYLIST_USER_SETTINGS_LIST: case DISPLAYLIST_USER_SETTINGS_LIST:
if (menu_displaylist_parse_settings_enum(list, {
MENU_ENUM_LABEL_PRIVACY_SETTINGS, menu_displaylist_build_info_t build_list[] = {
PARSE_ACTION, false) == 0) {MENU_ENUM_LABEL_PRIVACY_SETTINGS, PARSE_ACTION},
count++; {MENU_ENUM_LABEL_ACCOUNTS_LIST, PARSE_ACTION},
if (menu_displaylist_parse_settings_enum(list, {MENU_ENUM_LABEL_NETPLAY_NICKNAME, PARSE_ONLY_STRING},
MENU_ENUM_LABEL_ACCOUNTS_LIST, {MENU_ENUM_LABEL_USER_LANGUAGE, PARSE_ONLY_UINT},
PARSE_ACTION, false) == 0) };
count++;
if (menu_displaylist_parse_settings_enum(list, for (i = 0; i < ARRAY_SIZE(build_list); i++)
MENU_ENUM_LABEL_NETPLAY_NICKNAME, {
PARSE_ONLY_STRING, false) == 0) if (menu_displaylist_parse_settings_enum(list,
count++; build_list[i].enum_idx, build_list[i].parse_type,
if (menu_displaylist_parse_settings_enum(list, false) == 0)
MENU_ENUM_LABEL_USER_LANGUAGE, count++;
PARSE_ONLY_UINT, false) == 0) }
count++; }
break; break;
case DISPLAYLIST_UPDATER_SETTINGS_LIST: case DISPLAYLIST_UPDATER_SETTINGS_LIST:
if (menu_displaylist_parse_settings_enum(list, if (menu_displaylist_parse_settings_enum(list,