mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Input port label adjustments
This commit is contained in:
parent
60a112ec97
commit
d44c8ef1d3
@ -287,6 +287,11 @@ static int action_get_title_dropdown_item(
|
|||||||
path, label, menu_type, s, len);
|
path, label, menu_type, s, len);
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
/* Analog to Digital Type -submenus do not have labels */
|
||||||
|
if ((enum_idx > MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE) &&
|
||||||
|
(enum_idx < MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE_LAST))
|
||||||
|
enum_idx = MENU_ENUM_LABEL_VALUE_INPUT_ADC_TYPE;
|
||||||
|
|
||||||
const char *title = msg_hash_to_str(enum_idx);
|
const char *title = msg_hash_to_str(enum_idx);
|
||||||
|
|
||||||
if (s && !string_is_empty(title))
|
if (s && !string_is_empty(title))
|
||||||
@ -474,7 +479,7 @@ static int action_get_title_dropdown_input_description_common(
|
|||||||
sizeof(input_label));
|
sizeof(input_label));
|
||||||
|
|
||||||
/* Build title string */
|
/* Build title string */
|
||||||
snprintf(s, len, "%s #%u - %s",
|
snprintf(s, len, "%s %u - %s",
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT),
|
||||||
port + 1,
|
port + 1,
|
||||||
input_label);
|
input_label);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user