mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-22 23:49:50 +00:00
Fix autoconf profile saving for devices not in their default port. (#17156)
User slot (player #) and joypad driver port is by default the same, but it can be changed either manually or automatically (reserved device). Use the correct index for detecting values associated with the port.
This commit is contained in:
parent
7dfc001379
commit
3d221f2c99
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user