From b485fac33ef961fb5725f3ae34520ee3b2f0339b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 11 Mar 2012 00:53:39 +0200 Subject: Fix configuration file behaviour - Do not rewrite if nothing needs to be changed - Update at program exit, in addition to updating when continuing from main menu to game --- src/settings.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'src/settings.h') diff --git a/src/settings.h b/src/settings.h index 4bc22eaa1..c08d54a47 100644 --- a/src/settings.h +++ b/src/settings.h @@ -172,7 +172,8 @@ public: */ bool getUpdatedConfigObject(std::istream &is, core::list &dst, - core::map &updated) + core::map &updated, + bool &value_changed) { JMutexAutoLock lock(m_mutex); @@ -219,6 +220,7 @@ public: infostream<<"Changing value of \""< \""<