summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-21 21:08:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-21 21:17:31 +0300
commit4a4681e6994e3489d2ab0f32d2cb19d97a8b496e (patch)
treefd342a89f8db4982ac7004d4ba6036c5da8050a9 /src/client.cpp
parentc2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1 (diff)
downloadmanaplus-4a4681e6994e3489d2ab0f32d2cb19d97a8b496e.tar.gz
manaplus-4a4681e6994e3489d2ab0f32d2cb19d97a8b496e.tar.bz2
manaplus-4a4681e6994e3489d2ab0f32d2cb19d97a8b496e.tar.xz
manaplus-4a4681e6994e3489d2ab0f32d2cb19d97a8b496e.zip
Add ability to remove old unused keys from configuration file.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 3d4e2a37d..77625c924 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -803,6 +803,10 @@ void Client::gameClear()
if (logger)
logger->log1("Quitting10");
+#ifdef DEBUG_CONFIG
+ config.enableKeyLogging();
+#endif
+ config.removeOldKeys();
config.write();
serverConfig.write();
@@ -1765,6 +1769,10 @@ void Client::initServerConfig(std::string serverName)
*/
void Client::initConfiguration()
{
+#ifdef DEBUG_CONFIG
+ config.setIsMain(true);
+#endif
+
// Fill configuration with defaults
config.setValue("hwaccel", false);
#if (defined __APPLE__) && defined USE_OPENGL
@@ -1777,7 +1785,7 @@ void Client::initConfiguration()
config.setValue("screen", false);
config.setValue("sound", true);
config.setValue("guialpha", 0.8f);
- config.setValue("remember", true);
+// config.setValue("remember", true);
config.setValue("sfxVolume", 100);
config.setValue("musicVolume", 60);
config.setValue("fpslimit", 60);