mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Use menu_hash_to_str_enum for code
This commit is contained in:
parent
59fd4b30d9
commit
6f405da27d
@ -26,6 +26,10 @@ static const char *menu_hash_to_str_us_label_enum(enum menu_hash_enums msg)
|
||||
{
|
||||
switch (msg)
|
||||
{
|
||||
case MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE:
|
||||
return "input_player%u_analog_dpad_mode";
|
||||
case MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE:
|
||||
return "input_libretro_device_p%u";
|
||||
case MENU_ENUM_LABEL_RUN:
|
||||
return "collection";
|
||||
case MENU_ENUM_LABEL_INPUT_USER_1_BINDS:
|
||||
|
@ -2998,10 +2998,11 @@ static int menu_displaylist_parse_options_remappings(
|
||||
{
|
||||
char key_type[PATH_MAX_LENGTH] = {0};
|
||||
char key_analog[PATH_MAX_LENGTH] = {0};
|
||||
unsigned val = p + 1;
|
||||
snprintf(key_type, sizeof(key_type),
|
||||
"input_libretro_device_p%u", p + 1);
|
||||
menu_hash_to_str_enum(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE), val);
|
||||
snprintf(key_analog, sizeof(key_analog),
|
||||
"input_player%u_analog_dpad_mode", p + 1);
|
||||
menu_hash_to_str_enum(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE), val);
|
||||
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
key_type, PARSE_ONLY_UINT, true);
|
||||
|
@ -25,6 +25,9 @@ enum menu_hash_enums
|
||||
MENU_ENUM_LABEL_UNKNOWN = 0,
|
||||
MENU_ENUM_LABEL_START_NET_RETROPAD,
|
||||
MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD,
|
||||
|
||||
MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE,
|
||||
MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE,
|
||||
|
||||
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X,
|
||||
MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_X,
|
||||
|
Loading…
x
Reference in New Issue
Block a user