mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Added another preference helper.
This commit is contained in:
parent
24d4fb8b04
commit
751e99354b
@ -102,6 +102,11 @@ void set(const std::string &key, bool value)
|
||||
prefs[key] = value;
|
||||
}
|
||||
|
||||
void set(const std::string &key, int value)
|
||||
{
|
||||
prefs[key] = value;
|
||||
}
|
||||
|
||||
void set(const std::string &key, char const *value)
|
||||
{
|
||||
prefs[key] = value;
|
||||
|
@ -41,6 +41,7 @@ namespace preferences {
|
||||
void set(const std::string& key, const std::string &value);
|
||||
void set(const std::string& key, char const *value);
|
||||
void set(const std::string &key, bool value);
|
||||
void set(const std::string &key, int value);
|
||||
void clear(const std::string& key);
|
||||
void set_child(const std::string& key, const config& val);
|
||||
const config &get_child(const std::string &key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user