From: Giuseppe Bilotta Date: Sat, 13 Aug 2011 05:33:43 +0000 (+0200) Subject: Let Settings accept a const char* directly X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=385904d75ae35484b76f48992e9c99840539aec3;p=zefram%2Fminetest%2Fminetest_engine.git Let Settings accept a const char* directly --- diff --git a/src/utility.h b/src/utility.h index df151fd8..5950d7df 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);