mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix ios build
This commit is contained in:
@@ -313,13 +313,14 @@ bool CModManager::removeModDir(QString path)
|
|||||||
{
|
{
|
||||||
// issues 2673 and 2680 its why you do not recursively remove without sanity check
|
// issues 2673 and 2680 its why you do not recursively remove without sanity check
|
||||||
QDir checkDir(path);
|
QDir checkDir(path);
|
||||||
|
QDir dir(path);
|
||||||
|
|
||||||
if(!checkDir.cdUp() || QString::compare("Mods", checkDir.dirName(), Qt::CaseInsensitive))
|
if(!checkDir.cdUp() || QString::compare("Mods", checkDir.dirName(), Qt::CaseInsensitive))
|
||||||
return false;
|
return false;
|
||||||
#ifndef VCMI_IOS //ios applications are stored in the isolated container
|
#ifndef VCMI_IOS //ios applications are stored in the isolated container
|
||||||
if(!checkDir.cdUp() || QString::compare("vcmi", checkDir.dirName(), Qt::CaseInsensitive))
|
if(!checkDir.cdUp() || QString::compare("vcmi", checkDir.dirName(), Qt::CaseInsensitive))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QDir dir(path);
|
|
||||||
if(!dir.absolutePath().contains("vcmi", Qt::CaseInsensitive))
|
if(!dir.absolutePath().contains("vcmi", Qt::CaseInsensitive))
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user