From fb7b1ec1a043382f25860ee7024a2a5bd16bdd29 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Tue, 24 Mar 2020 11:18:54 +0000 Subject: [PATCH] Use correct port index in input device configured/disconnected notifications --- tasks/task_autodetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index 9c4ce51e40..59d8c6dd9e 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -199,7 +199,7 @@ static void input_autoconfigure_joypad_add(config_file_t *conf, snprintf(msg, sizeof(msg), "%s %s #%u.", autoconfig_str, msg_hash_to_str(MSG_DEVICE_CONFIGURED_IN_PORT), - params->idx); + params->idx + 1); /* allow overriding the swap menu controls for player 1*/ if (params->idx == 0) @@ -425,7 +425,7 @@ bool input_autoconfigure_disconnect(unsigned i, const char *ident) snprintf(msg, sizeof(msg), "%s #%u (%s).", msg_hash_to_str(MSG_DEVICE_DISCONNECTED_FROM_PORT), - i, ident); + i + 1, ident); state->msg = strdup(msg);