diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-07 19:07:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-07 21:56:29 +0300 |
commit | 21277ad5c877d90680b757b058a3759e8f8b5559 (patch) | |
tree | 71089c982d94f592b27ed690a5d52e013803ae17 /src/configuration.h | |
parent | ae1ba709d91bd59d05da7b3e434658ec652f2355 (diff) | |
download | manaverse-21277ad5c877d90680b757b058a3759e8f8b5559.tar.gz manaverse-21277ad5c877d90680b757b058a3759e8f8b5559.tar.bz2 manaverse-21277ad5c877d90680b757b058a3759e8f8b5559.tar.xz manaverse-21277ad5c877d90680b757b058a3759e8f8b5559.zip |
Add auto adjust perfomance ability.
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h index 4b0238e9a..2e694002d 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -246,9 +246,14 @@ class Configuration : public ConfigurationObject void setValue(const std::string &key, const std::string &value); + void setSilent(const std::string &key, const std::string &value); + inline void setValue(const std::string &key, const char *value) { setValue(key, std::string(value)); } + inline void setSilent(const std::string &key, const char *value) + { setSilent(key, std::string(value)); } + inline void setValue(const std::string &key, float value) { setValue(key, toString(value)); } @@ -267,6 +272,9 @@ class Configuration : public ConfigurationObject inline void setValue(const std::string &key, bool value) { setValue(key, value ? "1" : "0"); } + inline void setSilent(const std::string &key, bool value) + { setSilent(key, value ? "1" : "0"); } + int resetIntValue(const std::string &key); bool resetBoolValue(const std::string &key); |