summaryrefslogtreecommitdiff
path: root/plugingui/pluginconfig.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/pluginconfig.cc')
-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"));