1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Load files from subfolders in texturepacks

Updated and rebased version of a PR by red-001
This commit is contained in:
number Zero 2017-09-13 23:03:18 +03:00 committed by paramat
parent ae9b1aa177
commit 05d93c7fa1
7 changed files with 63 additions and 19 deletions

View file

@ -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)) {