This commit is contained in:
brindosch
2017-05-29 21:34:47 +02:00
parent e2ca9bcaa5
commit a7f72a7bf2
3 changed files with 39 additions and 51 deletions

View File

@@ -293,7 +293,7 @@ void EffectEngine::readEffects()
Warning(_log, "Failed to create Effect path \"%s\", please check permissions",path.toUtf8().constData() );
}
}
if (directory.exists(path))
else
{
int efxCount = 0;
QStringList filenames = directory.entryList(QStringList() << "*.json", QDir::Files, QDir::Name | QDir::IgnoreCase);
@@ -336,10 +336,6 @@ void EffectEngine::readEffects()
if (efxCount > 0)
Info(_log, "%d effect schemas loaded from directory %s", efxCount, (path + "schema/").toUtf8().constData());
}
else
{
Warning(_log, "Effect path \"%s\" does not exist",path.toUtf8().constData() );
}
}
foreach(auto item, availableEffects)