Extract addons zip file recursively (for canyon42 in the future)

This commit is contained in:
Benau
2019-12-06 22:11:35 +08:00
parent 0728722f37
commit b095438681

View File

@@ -492,7 +492,7 @@ bool AddonsManager::install(const Addon &addon)
std::string from = file_manager->getAddonsFile("tmp/"+base_name);
std::string to = addon.getDataDir();
bool success = extract_zip(from, to);
bool success = extract_zip(from, to, true/*recursive*/);
if (!success)
{
// TODO: show a message in the interface