aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-13 07:33:43 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-13 07:33:43 +0200
commit385904d75ae35484b76f48992e9c99840539aec3 (patch)
tree09b0e255c90fba9a35572a35037d446fb3d868b6
parentb1e0b7728bc0933f17509b8bfbc48f218f9990dc (diff)
downloadminetest-385904d75ae35484b76f48992e9c99840539aec3.tar.gz
minetest-385904d75ae35484b76f48992e9c99840539aec3.tar.bz2
minetest-385904d75ae35484b76f48992e9c99840539aec3.zip
Let Settings accept a const char* directly
-rw-r--r--src/utility.h8
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);