From 8e7cccb92d27ec38438c034d715a7f2812fa0ced Mon Sep 17 00:00:00 2001 From: fr500 Date: Thu, 23 Jul 2015 00:38:31 -0400 Subject: [PATCH] fix autoconfig, it was matching the last profile when no match was found --- input/input_autodetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_autodetect.c b/input/input_autodetect.c index 5b18919395..41ce193da5 100644 --- a/input/input_autodetect.c +++ b/input/input_autodetect.c @@ -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);