diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index d6e07837..992f6574 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -136,8 +136,11 @@ void initialize() config.setValue("dbpass", ""); config.setValue("dbhost", ""); - char *home = getenv("HOME"); - std::string configPath = home; +#ifdef WIN32 + std::string configPath = ""; +#else + std::string configPath = getenv("HOME"); +#endif configPath += "/.tmwserv.xml"; config.init(configPath); } |