Mod security: Allow read-only access to all mod paths
This commit is contained in:
@@ -53,11 +53,12 @@ class LuaSettings : public ModApiBase {
|
||||
// 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)
|
||||
|
||||
Reference in New Issue
Block a user