diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2017-09-13 23:03:18 +0300 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-11-17 19:23:08 +0000 |
commit | 05d93c7fa1be9245dd5211b7dc1bdf0961b39eea (patch) | |
tree | cbf354caa6c100f2e1e5c524d2f959913f52ac0e /src/script/lua_api/l_mainmenu.cpp | |
parent | ae9b1aa1774aedca8f452514d9462c281e36773a (diff) | |
download | minetest-05d93c7fa1be9245dd5211b7dc1bdf0961b39eea.tar.gz minetest-05d93c7fa1be9245dd5211b7dc1bdf0961b39eea.tar.bz2 minetest-05d93c7fa1be9245dd5211b7dc1bdf0961b39eea.zip |
Load files from subfolders in texturepacks
Updated and rebased version of a PR by red-001
Diffstat (limited to 'src/script/lua_api/l_mainmenu.cpp')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index cdb27fb60..95696bc20 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -532,7 +532,7 @@ int ModApiMainMenu::l_delete_world(lua_State *L) std::vector<std::string> paths; paths.push_back(spec.path); - fs::GetRecursiveSubPaths(spec.path, paths); + fs::GetRecursiveSubPaths(spec.path, paths, true); // Delete files if (!fs::DeletePaths(paths)) { |