mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 06:41:04 +00:00
fix autoconfig, it was matching the last profile when no match was found
This commit is contained in:
parent
35bd8eaf1a
commit
8e7cccb92d
@ -202,7 +202,7 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
config_file_free(conf);
|
||||
}
|
||||
|
||||
if(index >= 0)
|
||||
if(index >= 0 && current_best > 0)
|
||||
{
|
||||
RARCH_LOG("Autoconf: best configuration score=%d\n", current_best);
|
||||
conf = config_file_new(list->elems[index].data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user