Testing time!
Also new: Effects dirs are now created automatically
This commit is contained in:
brindosch
2017-05-29 15:59:11 +02:00
parent 64fc6a9003
commit e2ca9bcaa5
7 changed files with 213 additions and 1 deletions

View File

@@ -282,7 +282,18 @@ void EffectEngine::readEffects()
foreach (const QString & path, efxPathList )
{
QDir directory(path);
if (directory.exists())
if (!directory.exists())
{
if(directory.mkpath(path))
{
Warning(_log, "New Effect path \"%s\" created successfull",path.toUtf8().constData() );
}
else
{
Warning(_log, "Failed to create Effect path \"%s\", please check permissions",path.toUtf8().constData() );
}
}
if (directory.exists(path))
{
int efxCount = 0;
QStringList filenames = directory.entryList(QStringList() << "*.json", QDir::Files, QDir::Name | QDir::IgnoreCase);