mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Use mapped controller name in setting_action_ok_bind_all_save_autoconfig (#13500)
Consistently with input_config_get_device_name use in get_string_representation_split_joycon. Fixes a bug where saved autoconfig would not match the current device, but an unpredictable other device in the system.
This commit is contained in:
parent
87ce001a4a
commit
d8d21e9947
@ -2719,7 +2719,9 @@ static int setting_action_ok_bind_all_save_autoconfig(
|
||||
rarch_setting_t *setting, size_t idx, bool wraparound)
|
||||
{
|
||||
unsigned index_offset = 0;
|
||||
unsigned map = 0;
|
||||
const char *name = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
(void)wraparound;
|
||||
|
||||
@ -2727,7 +2729,8 @@ static int setting_action_ok_bind_all_save_autoconfig(
|
||||
return -1;
|
||||
|
||||
index_offset = setting->index_offset;
|
||||
name = input_config_get_device_name(index_offset);
|
||||
map = settings->uints.input_joypad_index[index_offset];
|
||||
name = input_config_get_device_name(map);
|
||||
|
||||
if (!string_is_empty(name) &&
|
||||
config_save_autoconf_profile(name, index_offset))
|
||||
|
Loading…
x
Reference in New Issue
Block a user