summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mainmenu.h
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2019-01-26 08:12:20 -0500
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-01-26 14:12:20 +0100
commitded522b2ee00b8f325b5f5fe216d67dd8a15f42a (patch)
tree4b9a80f8715c3b9d25e506b184aeab89710546e6 /src/script/lua_api/l_mainmenu.h
parent922e6ff57ec9f07d2ff04cf010821c1ddd00831e (diff)
downloadminetest-ded522b2ee00b8f325b5f5fe216d67dd8a15f42a.tar.gz
minetest-ded522b2ee00b8f325b5f5fe216d67dd8a15f42a.tar.bz2
minetest-ded522b2ee00b8f325b5f5fe216d67dd8a15f42a.zip
Fix pkgmgr game install with RUN_IN_PLACE=0 (#8113)
Diffstat (limited to 'src/script/lua_api/l_mainmenu.h')
-rw-r--r--src/script/lua_api/l_mainmenu.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/script/lua_api/l_mainmenu.h b/src/script/lua_api/l_mainmenu.h
index ae68edccf..9e7792197 100644
--- a/src/script/lua_api/l_mainmenu.h
+++ b/src/script/lua_api/l_mainmenu.h
@@ -53,11 +53,12 @@ private:
static int getBoolData(lua_State *L, std::string name,bool& valid);
/**
- * check if a path is within some of minetests folders
+ * 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/false
+ * @return true if the path may be modified
*/
- static bool isMinetestPath(std::string path);
+ static bool mayModifyPath(const std::string &path);
//api calls