Allow remove directory recursively if it's inside addons folder

This commit is contained in:
Benau 2019-11-29 21:25:25 +08:00
parent 45e4175ba6
commit 9103a66651

View File

@ -1528,6 +1528,9 @@ bool FileManager::removeDirectory(const std::string &name) const
// So enable it only for Android for now.
#ifdef MOBILE_STK
removeDirectory(file);
#else
if (file.find(m_addons_dir) != std::string::npos)
removeDirectory(file);
#endif
}
else