From ded522b2ee00b8f325b5f5fe216d67dd8a15f42a Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Sat, 26 Jan 2019 08:12:20 -0500 Subject: Fix pkgmgr game install with RUN_IN_PLACE=0 (#8113) --- src/script/lua_api/l_mainmenu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/script/lua_api/l_mainmenu.h') 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 -- cgit v1.2.3