mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement script sandboxing for main menu
This commit is contained in:
parent
1fd4e0b82d
commit
ea4ae55e24
10 changed files with 146 additions and 126 deletions
|
@ -37,14 +37,6 @@ private:
|
|||
*/
|
||||
static int getBoolData(lua_State *L, const std::string &name ,bool& valid);
|
||||
|
||||
/**
|
||||
* Checks if a path may be modified. Paths in the temp directory or the user
|
||||
* games, mods, textures, or worlds directories may be modified.
|
||||
* @param path path to check
|
||||
* @return true if the path may be modified
|
||||
*/
|
||||
static bool mayModifyPath(std::string path);
|
||||
|
||||
//api calls
|
||||
|
||||
static int l_start(lua_State *L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue