Allow remove directory recursively if it's inside addons folder
This commit is contained in:
parent
45e4175ba6
commit
9103a66651
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user