mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
[all] verify if paths are already configured before creating defaults
This commit is contained in:
parent
22597e2604
commit
6aad439160
@ -125,8 +125,13 @@ void main_exit(void *args)
|
||||
|
||||
static void check_defaults_dirs(void)
|
||||
{
|
||||
settings_t *settings = NULL;
|
||||
settings = config_get_ptr();
|
||||
|
||||
if(settings->core_assets_directory[0] == '\0')
|
||||
if (*g_defaults.dir.core_assets)
|
||||
path_mkdir(g_defaults.dir.core_assets);
|
||||
if(settings->input_remapping_directory[0] == '\0')
|
||||
if (*g_defaults.dir.remap)
|
||||
path_mkdir(g_defaults.dir.remap);
|
||||
if (*g_defaults.dir.autoconfig)
|
||||
@ -241,8 +246,6 @@ bool main_load_content(int argc, char **argv, void *args,
|
||||
if (environ_get)
|
||||
environ_get(rarch_argc_ptr, rarch_argv_ptr, args, wrap_args);
|
||||
|
||||
check_defaults_dirs();
|
||||
|
||||
if (wrap_args->touched)
|
||||
{
|
||||
rarch_main_init_wrap(wrap_args, &rarch_argc, rarch_argv);
|
||||
@ -262,6 +265,11 @@ bool main_load_content(int argc, char **argv, void *args,
|
||||
|
||||
event_command(EVENT_CMD_RESUME);
|
||||
|
||||
settings_t *settings;
|
||||
settings = config_get_ptr();
|
||||
printf("***%s\n",settings->core_assets_directory);
|
||||
check_defaults_dirs();
|
||||
|
||||
if (process_args)
|
||||
process_args(rarch_argc_ptr, rarch_argv_ptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user