Start not using LABEL_VALUE_ for querying settings groups

This commit is contained in:
twinaphex 2016-06-17 17:55:25 +02:00
parent ee90fa3015
commit 8e9adba956
2 changed files with 2 additions and 2 deletions

View File

@ -3754,7 +3754,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
char lbl[PATH_MAX_LENGTH] = {0};
unsigned val = atoi(info->path);
snprintf(lbl, sizeof(lbl),
menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS), val);
menu_hash_to_str_enum(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + (val-1)));
ret = menu_displaylist_parse_settings(menu, info,
lbl, PARSE_NONE, true);
info->need_refresh = true;

View File

@ -3709,7 +3709,7 @@ static bool setting_append_list_input_player_options(
snprintf(buffer[user], sizeof(buffer[user]),
"%s %u", menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_USER), user + 1);
snprintf(group_lbl[user], sizeof(group_lbl[user]),
menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS), user + 1);
menu_hash_to_str_enum(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + user));
START_GROUP(list, list_info, &group_info, group_lbl[user], parent_group);