diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-09-23 17:26:09 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-09-23 17:26:09 +0200 |
commit | 71c3a215093b1a22127ac0936ea0b988436af1c2 (patch) | |
tree | 7fc3c6a27e94213cc3f9e432ac21715f45e97d2a /plugingui | |
parent | a7d4f433c5baa072d1645bd2ba51353651cf66e5 (diff) |
Testing config file creation on windows XP.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/pluginconfig.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc index 38cf616..1ce1e66 100644 --- a/plugingui/pluginconfig.cc +++ b/plugingui/pluginconfig.cc @@ -82,7 +82,11 @@ FILE* openFilePtr(std::string mode) { configpath += CONFIGDIRNAME; if(!Directory::exists(configpath)) { DEBUG(pluginconfig, "No configuration exists, creating directory '%s'\n", configpath.c_str()); +#ifdef WIN32 + if( (mkdir(configpath.c_str())) < 0) { +#else if( (mkdir(configpath.c_str(), 0755)) < 0) { +#endif DEBUG(pluginconfig, "Could not create config directory\n"); } return NULL; |