From 0fa2a7fa63d16b0c4d1ae374454e978d98defae2 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 16 Jul 2005 10:10:08 +0000 Subject: Workaround to let tmwserv work in windows --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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); } -- cgit v1.2.3-60-g2f50