mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
system_directory defaults to ROM directory.
Also fires off a warning about this ...
This commit is contained in:
parent
620769fbeb
commit
d750acedf3
@ -687,6 +687,8 @@ static void set_paths(const char *path)
|
||||
RARCH_LOG("Redirecting save state to \"%s\".\n", g_extern.savestate_name);
|
||||
}
|
||||
|
||||
fill_pathname_basedir(g_settings.system_directory, path, sizeof(g_settings.system_directory));
|
||||
|
||||
#ifdef HAVE_CONFIGFILE
|
||||
if (*g_extern.config_path && path_is_directory(g_extern.config_path))
|
||||
{
|
||||
|
@ -526,7 +526,11 @@ bool config_load_file(const char *path)
|
||||
RARCH_WARN("savestate_directory is not a directory, ignoring ...\n");
|
||||
}
|
||||
|
||||
CONFIG_GET_PATH(system_directory, "system_directory");
|
||||
if (!config_get_path(conf, g_settings.system_directory, "system_directory", sizeof(g_settings.system_directory)))
|
||||
{
|
||||
RARCH_WARN("system_directory is not set in config. Assuming system directory is same folder as game: \"%s\".\n",
|
||||
g_settings.system_directory);
|
||||
}
|
||||
|
||||
config_read_keybinds_conf(conf);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user