diff options
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index a61874c8..1991aa5a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -137,10 +137,10 @@ void init_engine() SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); std::string homeDir = ""; - -#ifdef __USE_UNIX98 +#ifndef __USE_UNIX98 // In Windows and other systems we currently store data next to executable. - // So homeDir keeps being "" + homeDir = TMW_DATADIR; +#else // But, in UNIX we store data in ~/.tmw/ passwd *pass = getpwuid(geteuid()); @@ -190,11 +190,7 @@ void init_engine() config.setValue("fpslimit", 0); config.setValue("updatehost", "http://themanaworld.org/files"); config.setValue("customcursor", 1); - #ifdef __USE_UNIX98 - config.setValue("homeDir", homeDir); - #else - config.setValue("homeDir", TMW_DATADIR); - #endif + config.setValue("homeDir", homeDir); // Checking if the configuration file exists... otherwise creates it with // default options ! |