diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:33:06 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:35:19 +0200 |
commit | 28bc8c0edb549cdbbe0832c4202630a039f738b1 (patch) | |
tree | 9989f31a5121f82af5aa264ebfe7096c5ea5030f /src/main.cpp | |
parent | 627e1bc7eee5b821d29b2161dec4991cae7bf9c0 (diff) | |
download | mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.gz mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.bz2 mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.xz mana-28bc8c0edb549cdbbe0832c4202630a039f738b1.zip |
Some cleanup of the Configuration interface
Mainly avoid all the convertions from integer to float and then to
string and also back from string to float and then to integer.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5ae86d54..35943941 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -344,23 +344,23 @@ static void initConfiguration(const Options &options) int defaultPort = (int)branding.getValue("defaultPort", 6901); #endif config.setValue("port", defaultPort); - config.setValue("hwaccel", 0); + config.setValue("hwaccel", false); #if (defined __APPLE__ || defined WIN32) && defined USE_OPENGL - config.setValue("opengl", 1); + config.setValue("opengl", true); #else - config.setValue("opengl", 0); + config.setValue("opengl", false); #endif - config.setValue("screen", 0); - config.setValue("sound", 1); + config.setValue("screen", false); + config.setValue("sound", true); config.setValue("guialpha", 0.8f); - config.setValue("remember", 1); + config.setValue("remember", true); config.setValue("sfxVolume", 100); config.setValue("musicVolume", 60); config.setValue("fpslimit", 60); std::string defaultUpdateHost = branding.getValue("defaultUpdateHost", "http://updates.themanaworld.org"); config.setValue("updatehost", defaultUpdateHost); - config.setValue("customcursor", 1); + config.setValue("customcursor", true); config.setValue("ChatLogLength", 128); // Checking if the configuration file exists... otherwise create it with |