summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-02 19:31:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-02 19:31:34 +0300
commit63d82eada2fccdecf3c90452e93860a37656e7c4 (patch)
tree1b0fdd869d9066524057339212b7255e59c8485b /src/configuration.h
parentedc8de3400acbbae60930a9c1d4f946df5b2e68f (diff)
downloadmanaplus-63d82eada2fccdecf3c90452e93860a37656e7c4.tar.gz
manaplus-63d82eada2fccdecf3c90452e93860a37656e7c4.tar.bz2
manaplus-63d82eada2fccdecf3c90452e93860a37656e7c4.tar.xz
manaplus-63d82eada2fccdecf3c90452e93860a37656e7c4.zip
auto save config if it was changed in game each 10 seconds.
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h
index daa10f51b..d6bcda348 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -346,6 +346,8 @@ class Configuration final : public ConfigurationObject
std::string getFileName() const A_WARN_UNUSED
{ return mFilename; }
+ void writeUpdated();
+
private:
/**
* Clean up the default values member.
@@ -365,6 +367,7 @@ class Configuration final : public ConfigurationObject
std::string mDirectory;
std::string mFilename;
bool mUseResManager;
+ bool mUpdated;
};
extern Configuration branding;