diff options
-rw-r--r-- | src/main.cpp | 7 | ||||
-rw-r--r-- | tmwserv.dev | 24 |
2 files changed, 17 insertions, 14 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); } diff --git a/tmwserv.dev b/tmwserv.dev index 6460c4d4..465125b7 100644 --- a/tmwserv.dev +++ b/tmwserv.dev @@ -17,7 +17,7 @@ ResourceIncludes= MakeIncludes= Compiler=_@@_ CppCompiler=-DSQLITE_SUPPORT_@@_ -Linker=-lSDL_@@_-lSDL_net_@@_-lsqlite3_@@_-lcrypto_@@_-llibxml2_@@_-mconsole_@@_-mwindows_@@_ +Linker=-lmingw32_@@_-lSDL_@@_-lSDL_net_@@_-lsqlite3_@@_-lcrypto_@@_-llibxml2_@@_-mconsole_@@_-mwindows_@@_ IsCpp=1 Icon= ExeOutput= @@ -32,7 +32,7 @@ CustomMakefile= IncludeVersionInfo=1 SupportXPThemes=0 CompilerSet=0 -CompilerSettings=0000000000000000000100 +CompilerSettings=0000000000000001000000 [Unit3] FileName=src\dal\dataprovider.h @@ -462,16 +462,6 @@ Priority=1000 OverrideBuildCmd=0 BuildCmd= -[Unit57] -FileName=src\SDL_win32_main.c -CompileCpp=1 -Folder=tmwserv -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - [Unit58] FileName=src\SDL_win32_main.c CompileCpp=1 @@ -692,3 +682,13 @@ Priority=1000 OverrideBuildCmd=0 BuildCmd= +[Unit57] +FileName=src\SDL_win32_main.c +CompileCpp=1 +Folder=tmwserv +Compile=1 +Link=1 +Priority=1000 +OverrideBuildCmd=0 +BuildCmd= + |