mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 22:14:06 +00:00
make it prefer the drivername subdir if it exists when saving
This commit is contained in:
parent
25d2f2a45f
commit
b698e434f5
@ -2350,13 +2350,21 @@ bool config_save_autoconf_profile(const char *path, unsigned user)
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
fill_pathname_join(buf, settings->input.autoconfig_dir,
|
||||
input.joypad_driver, sizeof(buf));
|
||||
settings->input.joypad_driver, sizeof(buf));
|
||||
|
||||
if(path_is_directory(buf))
|
||||
{
|
||||
fill_pathname_join(buf, buf,
|
||||
path, sizeof(buf));
|
||||
fill_pathname_noext(autoconf_file, buf, ".cfg", sizeof(autoconf_file));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if(!path_is_directory(buf))
|
||||
fill_pathname_join(buf, settings->input.autoconfig_dir,
|
||||
path, sizeof(buf));
|
||||
|
||||
fill_pathname_noext(autoconf_file, buf, ".cfg", sizeof(autoconf_file));
|
||||
}
|
||||
|
||||
conf = config_file_new(autoconf_file);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user