mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-19 10:50:40 +00:00
default paths overwriting code now gets applied for all platforms
This commit is contained in:
parent
6fa7e1894e
commit
62cd5bbe8a
@ -40,6 +40,6 @@ typedef struct
|
||||
char system_dir[PATH_MAX];
|
||||
} default_paths_t;
|
||||
|
||||
extern default_paths_t default_paths;
|
||||
default_paths_t default_paths;
|
||||
|
||||
#endif
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "file.h"
|
||||
#include "compat/posix_string.h"
|
||||
#include "input/input_common.h"
|
||||
#include "console/rarch_console.h"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
@ -475,7 +476,6 @@ void config_set_defaults(void)
|
||||
if (default_config_path)
|
||||
fill_pathname_expand_special(g_extern.config_path, default_config_path, sizeof(g_extern.config_path));
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
if (*default_paths.assets_dir)
|
||||
strlcpy(g_settings.assets_directory, default_paths.assets_dir, sizeof(g_settings.assets_directory));
|
||||
if (*default_paths.core_dir)
|
||||
@ -497,7 +497,6 @@ void config_set_defaults(void)
|
||||
|
||||
if (*default_paths.config_path)
|
||||
strlcpy(g_extern.config_path, default_paths.config_path, sizeof(g_extern.config_path));
|
||||
#endif
|
||||
|
||||
g_extern.config_save_on_exit = config_save_on_exit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user