summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
authortmator <tmator@gmail.com>2009-03-09 10:43:56 +0000
committertmator <tmator@gmail.com>2009-03-09 10:43:56 +0000
commit9635b50a35b257b023a1b59e0e151556893cc52e (patch)
treeaa167b9070250e856f42b5cd9686f6f890358014 /Source/Core/Common/Src/FileUtil.cpp
parent2f00c0bda95db1e1f561bffe28ac533de04d1435 (diff)
fix main config dir on osx and autodetect ogl version when it build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2630 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index e685076495..55e66b5d8b 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -510,6 +510,19 @@ bool SetCurrentDirectory(const char *_rDirectory)
}
#if defined(__APPLE__)
+
+//get the full config dir
+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;
+
+}
+
std::string GetBundleDirectory()
{
// Plugin path will be Dolphin.app/Contents/PlugIns
@@ -542,7 +555,9 @@ std::string GetPluginsDirectory()
pluginsDir = PLUGINS_DIR;
#endif
+#if !defined (__APPLE__)
pluginsDir += DIR_SEP;
+#endif
INFO_LOG(COMMON, "GetPluginsDirectory: Setting to %s:", pluginsDir.c_str());
return pluginsDir;