diff options
author | ShadowNinja <shadowninja@minetest.net> | 2016-12-05 19:59:15 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-12-20 06:34:04 +0000 |
commit | 59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac (patch) | |
tree | d5717ed5f89542bcc26b4291ba193b2890763b01 /src/script/lua_api/l_settings.h | |
parent | 24edfb77afbb631cb83d26a095b609850f997e5c (diff) | |
download | minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.gz minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.bz2 minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.zip |
Mod security: Allow read-only access to all mod paths
Diffstat (limited to 'src/script/lua_api/l_settings.h')
-rw-r--r-- | src/script/lua_api/l_settings.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_settings.h b/src/script/lua_api/l_settings.h index cb0c09a73..bca333e31 100644 --- a/src/script/lua_api/l_settings.h +++ b/src/script/lua_api/l_settings.h @@ -53,11 +53,12 @@ private: // to_table(self) -> {[key1]=value1,...} static int l_to_table(lua_State* L); + bool m_write_allowed; Settings* m_settings; std::string m_filename; public: - LuaSettings(const char* filename); + LuaSettings(const char* filename, bool write_allowed); ~LuaSettings(); // LuaSettings(filename) |