diff options
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 5cff7cc55c..86eada6035 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -512,14 +512,23 @@ bool SetCurrentDir(const char *_rDirectory) #if defined(__APPLE__) //get the full config dir -char *GetConfigDirectory() +const char *GetConfigDirectory() { - static char path[MAX_PATH] = {0}; if (strlen(path) > 0) return path; snprintf(path, sizeof(path), "%s" DIR_SEP CONFIG_FILE, GetUserDirectory()); return path; +} + +//get the full SYSCONF dir +const char *GetSysConfDirectory() +{ + static char path[MAX_PATH] = {0}; + if (strlen(path) > 0) + return path; + snprintf(path, sizeof(path), "%s" DIR_SEP WII_SYSCONF_FILE, GetUserDirectory()); + return path; } |
