summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 17:29:16 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 17:29:16 +0200
commit7ce9dc89f3d2b072c69d70b1b5b2282b99012380 (patch)
treed943157e9bcc3bcf1b5c347fc6d4143c8c16b05b
parent71c3a215093b1a22127ac0936ea0b988436af1c2 (diff)
Testing config file creation on windows XP.
-rw-r--r--plugingui/pluginconfig.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc
index 1ce1e66..d129414 100644
--- a/plugingui/pluginconfig.cc
+++ b/plugingui/pluginconfig.cc
@@ -63,7 +63,7 @@ Config::~Config()
}
-FILE* openFilePtr(std::string mode) {
+static FILE* openFilePtr(std::string mode) {
#ifdef WIN32
std::string configpath = ".";
TCHAR szPath[256];
@@ -135,6 +135,8 @@ void Config::load()
void Config::save()
{
+ DEBUG(pluginconfig, "Saving configuration...\n");
+
FILE *fp = openFilePtr("w");
if(!fp) return;