Use menu_hash_to_str some more

This commit is contained in:
twinaphex 2015-06-18 20:38:02 +02:00
parent 9776fc6a05
commit 1fac29b651
2 changed files with 9 additions and 2 deletions

View File

@ -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:

View File

@ -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;