From a7d4f433c5baa072d1645bd2ba51353651cf66e5 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Tue, 23 Sep 2014 17:24:46 +0200 Subject: Testing config file creation on windows XP. --- plugingui/pluginconfig.cc | 6 +----- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3