mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Mod security: Allow read-only access to all mod paths
This commit is contained in:
parent
24edfb77af
commit
59f84ca0a0
8 changed files with 90 additions and 42 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue