summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 17:24:46 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 17:24:46 +0200
commita7d4f433c5baa072d1645bd2ba51353651cf66e5 (patch)
treee5c588b2a6e74b14101e539ea0b0c54d857ee198 /plugingui
parent3916d352a8dddb53ff920d0709ab501fee5df89c (diff)
Testing config file creation on windows XP.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/pluginconfig.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc
index 457735e..38cf616 100644
--- a/plugingui/pluginconfig.cc
+++ b/plugingui/pluginconfig.cc
@@ -74,13 +74,10 @@ FILE* openFilePtr(std::string mode) {
szPath))); {
configpath = szPath;
DEBUG(config, "WINDOWS APP DATA PATH:%s\n", configpath.c_str());
-// PathAppend(szPath, "drumgizmo");
-// if(!Directory::exists(configpath)) {
-// CreateDirectory(szPath, NULL);
-// }
}
#else
std::string configpath = strdup(getenv("HOME"));
+#endif
configpath += SEP;
configpath += CONFIGDIRNAME;
if(!Directory::exists(configpath)) {
@@ -90,7 +87,6 @@ FILE* openFilePtr(std::string mode) {
}
return NULL;
}
-#endif
FILE *fp;
std::string configfile = configpath;