mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Load files from subfolders in texturepacks
Updated and rebased version of a PR by red-001
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user