diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-16 14:04:07 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-16 14:04:07 +0000 |
commit | 96e61ed3ff7e41976ac8788363d6df8719037962 (patch) | |
tree | 28326c7110293980043c38d0b7bc1669323802ab /src/main.cpp | |
parent | d9aa17b843253b05278e10f804a48ab036fb6119 (diff) | |
download | mana-96e61ed3ff7e41976ac8788363d6df8719037962.tar.gz mana-96e61ed3ff7e41976ac8788363d6df8719037962.tar.bz2 mana-96e61ed3ff7e41976ac8788363d6df8719037962.tar.xz mana-96e61ed3ff7e41976ac8788363d6df8719037962.zip |
- Fixing data path in Win32
- Adding default values to config
- Fixes after Bertram changes (I hope this way it works even in Linux)
- Error message are now displayed in browser for better readability
- Already downloaded files are not downloaded aother time
(As usually it needs testing so please report to me evry malfunctioning)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1991aa5a..2efcc519 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -139,7 +139,7 @@ void init_engine() std::string homeDir = ""; #ifndef __USE_UNIX98 // In Windows and other systems we currently store data next to executable. - homeDir = TMW_DATADIR; + homeDir = "."; #else // But, in UNIX we store data in ~/.tmw/ passwd *pass = getpwuid(geteuid()); @@ -191,6 +191,7 @@ void init_engine() config.setValue("updatehost", "http://themanaworld.org/files"); config.setValue("customcursor", 1); config.setValue("homeDir", homeDir); + config.setValue("joytolerance", 10); // Checking if the configuration file exists... otherwise creates it with // default options ! |