Fix system info autoconf device list (#14783)

This commit is contained in:
sonninnos 2022-12-30 17:53:47 +02:00 committed by GitHub
parent bc9c5718f9
commit e0e21b3386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -11399,11 +11399,11 @@ MSG_HASH(
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_PORT_DEVICE_NAME,
"Port %d device name: %s (#%d)"
"Port %d Device Name: %s (#%d)"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_PORT_DEVICE_INFO,
"Device display name: %s\nDevice config name: %s\nDevice VID/PID: %d/%d"
"Device Display Name: %s\nDevice Config Name: %s\nDevice VID/PID: %d/%d"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CHEAT_SETTINGS,

View file

@ -1239,7 +1239,7 @@ static int action_bind_sublabel_systeminfo_controller_entry(
{
snprintf(tmp, sizeof(tmp),
val_port_dev_name,
controller,
controller + 1,
input_config_get_device_name(controller),
input_config_get_device_name_index(controller));

View file

@ -1788,7 +1788,7 @@ static unsigned menu_displaylist_parse_system_info(file_list_t *list)
{
snprintf(tmp, sizeof(tmp),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT_DEVICE_NAME),
controller+1,
controller + 1,
input_config_get_device_name(controller),
input_config_get_device_name_index(controller));
@ -1800,7 +1800,7 @@ static unsigned menu_displaylist_parse_system_info(file_list_t *list)
#ifdef HAVE_RGUI
if (string_is_equal(menu_driver, "rgui"))
{
strlcpy(tmp, "- Device display name: ", sizeof(tmp));
strlcpy(tmp, "- Device Display Name: ", sizeof(tmp));
strlcat(tmp,
input_config_get_device_display_name(controller) ?
input_config_get_device_display_name(controller) :
@ -1810,7 +1810,7 @@ static unsigned menu_displaylist_parse_system_info(file_list_t *list)
MENU_ENUM_LABEL_SYSTEM_INFO_CONTROLLER_ENTRY,
MENU_SETTINGS_CORE_INFO_NONE, 0, 0, NULL))
count++;
strlcpy(tmp, "- Device config name: ", sizeof(tmp));
strlcpy(tmp, "- Device Config Name: ", sizeof(tmp));
strlcat(tmp,
input_config_get_device_config_name(controller) ?
input_config_get_device_config_name(controller) :