diff --git a/configuration.c b/configuration.c index c90935022678..10c216296ef6 100644 --- a/configuration.c +++ b/configuration.c @@ -5190,10 +5190,10 @@ bool config_save_autoconf_profile(const config_set_string(conf, "input_driver", joypad_driver); config_set_string(conf, "input_device", - input_config_get_device_name(user)); + input_config_get_device_name(settings->uints.input_joypad_index[user])); - pid_user = input_config_get_device_pid(user); - vid_user = input_config_get_device_vid(user); + pid_user = input_config_get_device_pid(settings->uints.input_joypad_index[user]); + vid_user = input_config_get_device_vid(settings->uints.input_joypad_index[user]); if (pid_user && vid_user) {