mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
make it look in the top level directory first, if no profiles look in the driver name subdir
This commit is contained in:
parent
b79f81a595
commit
7b45800ff9
@ -158,11 +158,20 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
fill_pathname_join(path,settings->input.autoconfig_dir,settings->input.driver,sizeof(path));
|
||||
|
||||
struct string_list *list = settings ? dir_list_new(
|
||||
path, "cfg", false) : NULL;
|
||||
settings->input.autoconfig_dir, "cfg", false) : NULL;
|
||||
|
||||
if (!list)
|
||||
if (!list || !list->size)
|
||||
{
|
||||
fill_pathname_join(path,settings->input.autoconfig_dir,settings->input.driver,sizeof(path));
|
||||
|
||||
list = settings ? dir_list_new(
|
||||
path, "cfg", false) : NULL;
|
||||
}
|
||||
|
||||
if(!list)
|
||||
return false;
|
||||
|
||||
RARCH_LOG("Autoconfig: %d profiles found\n", list->size);
|
||||
config_file_t *conf;
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user