fix autoconfig, it was matching the last profile when no match was found

This commit is contained in:
fr500 2015-07-23 00:38:31 -04:00
parent 35bd8eaf1a
commit 8e7cccb92d

View File

@ -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);