Skip to content

Commit

Permalink
Merge pull request #5088 from RobLoach/patch-13
Browse files Browse the repository at this point in the history
Use GLOBAL_CONFIG_DIR for the skeleton config path
  • Loading branch information
inactive123 authored Jun 21, 2017
2 parents 8068bcc + 7b57696 commit ffa9dde
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "configuration.h"
#include "content.h"
#include "config.def.h"
#include "config.features.h"
#include "input/input_config.h"
#include "input/input_keymaps.h"
#include "input/input_remapping.h"
Expand Down Expand Up @@ -1959,13 +1960,10 @@ static config_file_t *open_default_config_file(void)

skeleton_conf[0] = '\0';

#if defined(__HAIKU__)
fill_pathname_join(skeleton_conf, "/system/settings",
file_path_str(FILE_PATH_MAIN_CONFIG), sizeof(skeleton_conf));
#else
fill_pathname_join(skeleton_conf, "/etc",
file_path_str(FILE_PATH_MAIN_CONFIG), sizeof(skeleton_conf));
#endif
// Build a retroarch.cfg path from the global config directory (/etc).
fill_pathname_join(skeleton_conf, GLOBAL_CONFIG_DIR,
file_path_str(FILE_PATH_MAIN_CONFIG), sizeof(skeleton_conf));

conf = config_file_new(skeleton_conf);
if (conf)
RARCH_WARN("Config: using skeleton config \"%s\" as base for a new config file.\n", skeleton_conf);
Expand Down

0 comments on commit ffa9dde

Please sign in to comment.