summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-08-05 20:29:14 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-08-05 20:29:14 +0200
commit9e15b5befb1ad49a830d63b2c3dc59bff78487b7 (patch)
tree913c4b79bcce0f5162bc08cba6e0907d3795d84e /plugingui
parent656b0a0d500d1e238d0e0bca9dae3769d9aa9d7f (diff)
Fixing windows.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/pluginconfig.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc
index 913d7c7..d426e64 100644
--- a/plugingui/pluginconfig.cc
+++ b/plugingui/pluginconfig.cc
@@ -64,6 +64,7 @@ Config::~Config()
FILE* openFilePtr(std::string mode) {
#ifdef WIN32
+ std::string configpath = ".";
TCHAR szPath[256];
if(SUCCEEDED(SHGetFolderPath(NULL,
CSIDL_APPDATA | CSIDL_FLAG_CREATE,
@@ -71,10 +72,8 @@ FILE* openFilePtr(std::string mode) {
0,
szPath))); {
DEBUG(config, "WINDOWS APP DATA PATH:%s\n", szPath);
- std::string configpath = ".";
-// PathAppend(szPath, TEXT(
-// PathAppend(szPath, TEXT(CONFIGFILENAME));
-// HANDLE hFile = CreateFile(szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL);
+ PathAppend(szPath, TEXT(CONFIGDIRNAME));
+ HANDLE hFile = CreateFile(szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL);
}
#else
std::string configpath = strdup(getenv("HOME"));