mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
settings.c - cleanups
This commit is contained in:
parent
24491e3701
commit
a7e16d2830
15
settings.c
15
settings.c
@ -718,6 +718,14 @@ static void config_set_defaults(void)
|
|||||||
g_extern.block_config_read = default_block_config_read;
|
g_extern.block_config_read = default_block_config_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GLOBAL_CONFIG_DIR
|
||||||
|
#if defined(__HAIKU__)
|
||||||
|
#define GLOBAL_CONFIG_DIR "/system/settings"
|
||||||
|
#else
|
||||||
|
#define GLOBAL_CONFIG_DIR "/etc"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* open_default_config_file
|
* open_default_config_file
|
||||||
*
|
*
|
||||||
@ -869,13 +877,6 @@ static config_file_t *open_default_config_file(void)
|
|||||||
|
|
||||||
if (path_mkdir(basedir))
|
if (path_mkdir(basedir))
|
||||||
{
|
{
|
||||||
#ifndef GLOBAL_CONFIG_DIR
|
|
||||||
#if defined(__HAIKU__)
|
|
||||||
#define GLOBAL_CONFIG_DIR "/system/settings"
|
|
||||||
#else
|
|
||||||
#define GLOBAL_CONFIG_DIR "/etc"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
char skeleton_conf[PATH_MAX_LENGTH];
|
char skeleton_conf[PATH_MAX_LENGTH];
|
||||||
fill_pathname_join(skeleton_conf, GLOBAL_CONFIG_DIR,
|
fill_pathname_join(skeleton_conf, GLOBAL_CONFIG_DIR,
|
||||||
"retroarch.cfg", sizeof(skeleton_conf));
|
"retroarch.cfg", sizeof(skeleton_conf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user