1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 16:08:51 -05:00

Let Settings accept a const char* directly

This commit is contained in:
Giuseppe Bilotta 2011-08-13 07:33:43 +02:00
parent b1e0b7728b
commit 385904d75a

View File

@ -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);