diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-01 14:32:54 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-01 14:32:54 +0100 |
commit | 89995efee487939d47e852d35a777e5dcfc28f35 (patch) | |
tree | 7295942c60de1bbfd652e8817e45f7c6fb034477 /src/script/lua_api | |
parent | 3df23e23cd1ace3449660077665f5ebe3e13fdc2 (diff) | |
download | dragonfireclient-89995efee487939d47e852d35a777e5dcfc28f35.tar.xz |
CheatDB Support & Enable/Disable CSMs in Main Menu
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |