diff --git a/menu/menu_hash.c b/menu/menu_hash.c index 39604c2a04..5a56cacfba 100644 --- a/menu/menu_hash.c +++ b/menu/menu_hash.c @@ -23,6 +23,10 @@ const char *menu_hash_to_str(uint32_t hash) { switch (hash) { + case MENU_LABEL_CUSTOM_BIND: + return "custom_bind"; + case MENU_LABEL_CUSTOM_BIND_ALL: + return "custom_bind_all"; case MENU_LABEL_VALUE_DISK_OPTIONS: return "Core Disk Options"; case MENU_LABEL_VALUE_CORE_OPTIONS: diff --git a/menu/menu_input.c b/menu/menu_input.c index 1ad038f6b9..28e98ae242 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -422,7 +422,8 @@ static int menu_input_set_bind_mode_common(rarch_setting_t *setting, info.list = menu_list->menu_stack; info.type = MENU_SETTINGS_CUSTOM_BIND_KEYBOARD; info.directory_ptr = nav->selection_ptr; - strlcpy(info.label, "custom_bind", sizeof(info.label)); + strlcpy(info.label, + menu_hash_to_str(MENU_LABEL_CUSTOM_BIND), sizeof(info.label)); menu_displaylist_push_list(&info, DISPLAYLIST_INFO); break; @@ -435,7 +436,9 @@ static int menu_input_set_bind_mode_common(rarch_setting_t *setting, info.list = menu_list->menu_stack; info.type = MENU_SETTINGS_CUSTOM_BIND_KEYBOARD; info.directory_ptr = nav->selection_ptr; - strlcpy(info.label, "custom_bind_all", sizeof(info.label)); + strlcpy(info.label, + menu_hash_to_str(MENU_LABEL_CUSTOM_BIND_ALL), + sizeof(info.label)); menu_displaylist_push_list(&info, DISPLAYLIST_INFO); break;