Skip to content

Commit

Permalink
Fix autoconf profile saving for devices not in their default port.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zoltanvb committed Nov 3, 2024
1 parent 0271684 commit d8094e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d8094e7

Please sign in to comment.