From 89995efee487939d47e852d35a777e5dcfc28f35 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 1 Dec 2020 14:32:54 +0100 Subject: CheatDB Support & Enable/Disable CSMs in Main Menu --- src/script/lua_api/l_mainmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_mainmenu.cpp') diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 0aa2760e9..2cf4a979b 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -902,6 +902,9 @@ bool ModApiMainMenu::mayModifyPath(const std::string &path) if (fs::PathStartsWith(path, fs::RemoveRelativePathComponents(porting::path_user + DIR_DELIM "mods"))) return true; + if (fs::PathStartsWith(path, fs::RemoveRelativePathComponents(porting::path_user + DIR_DELIM "clientmods"))) + return true; + if (fs::PathStartsWith(path, fs::RemoveRelativePathComponents(porting::path_user + DIR_DELIM "textures"))) return true; -- cgit v1.2.3