projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1e0b77
)
Let Settings accept a const char* directly
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Sat, 13 Aug 2011 05:33:43 +0000
(07:33 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Sat, 13 Aug 2011 05:33:43 +0000
(07:33 +0200)
src/utility.h
patch
|
blob
|
history
diff --git
a/src/utility.h
b/src/utility.h
index df151fd87308f89f9a24103ef639ebbd0ecdcff0..5950d7dfdcb072fa556424db865e8effd5c7b71e 100644
(file)
--- 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);