diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-13 07:33:43 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-13 07:33:43 +0200 |
commit | 385904d75ae35484b76f48992e9c99840539aec3 (patch) | |
tree | 09b0e255c90fba9a35572a35037d446fb3d868b6 | |
parent | b1e0b7728bc0933f17509b8bfbc48f218f9990dc (diff) | |
download | minetest-385904d75ae35484b76f48992e9c99840539aec3.tar.gz minetest-385904d75ae35484b76f48992e9c99840539aec3.tar.bz2 minetest-385904d75ae35484b76f48992e9c99840539aec3.zip |
Let Settings accept a const char* directly
-rw-r--r-- | src/utility.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h index df151fd87..5950d7dfd 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1264,6 +1264,14 @@ public: m_settings[name] = value; } + void set(std::string name, const char *value) + { + JMutexAutoLock lock(m_mutex); + + m_settings[name] = value; + } + + void setDefault(std::string name, std::string value) { JMutexAutoLock lock(m_mutex); |