mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 20:54:10 +00:00
Don't access global->path.config directly
This commit is contained in:
parent
e338b78792
commit
f4e1ffeabf
@ -1302,8 +1302,12 @@ static void config_set_defaults(void)
|
|||||||
sizeof(settings->directory.content_history));
|
sizeof(settings->directory.content_history));
|
||||||
|
|
||||||
if (!string_is_empty(g_defaults.path.config))
|
if (!string_is_empty(g_defaults.path.config))
|
||||||
fill_pathname_expand_special(global->path.config,
|
{
|
||||||
g_defaults.path.config, sizeof(global->path.config));
|
char temp_str[PATH_MAX_LENGTH];
|
||||||
|
fill_pathname_expand_special(temp_str,
|
||||||
|
g_defaults.path.config, sizeof(temp_str));
|
||||||
|
path_set_config(temp_str);
|
||||||
|
}
|
||||||
|
|
||||||
/* Avoid reloading config on every content load */
|
/* Avoid reloading config on every content load */
|
||||||
if (default_block_config_read)
|
if (default_block_config_read)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user