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:
parent
ae9b1aa177
commit
05d93c7fa1
7 changed files with 63 additions and 19 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue