From 167c83b6e645e069090e5fb676e9554cb1e311c9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 10 Jul 2016 14:59:59 +0200 Subject: [PATCH] Dehardcode some strings --- menu/menu_setting.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index ac5699f9d2..6d0b85b36f 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -3762,9 +3762,11 @@ static bool setting_append_list_input_player_options( snprintf(key[user], sizeof(key[user]), "input_player%u_joypad_index", user + 1); snprintf(key_type[user], sizeof(key_type[user]), - "input_libretro_device_p%u", user + 1); + msg_hash_to_str(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE), + user + 1); snprintf(key_analog[user], sizeof(key_analog[user]), - "input_player%u_analog_dpad_mode", user + 1); + msg_hash_to_str(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE), + user + 1); snprintf(key_bind_all[user], sizeof(key_bind_all[user]), "input_player%u_bind_all", user + 1); snprintf(key_bind_all_save_autoconfig[user], sizeof(key_bind_all[user]),