mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix effect overlay not evaluated correctly
This commit is contained in:
parent
6a06dfabdd
commit
f881a0abe3
@ -43,13 +43,13 @@ EffectEngine::EffectEngine(Hyperion * hyperion, const QJsonObject & jsonEffectCo
|
||||
efxPathList << ":/effects/";
|
||||
QStringList disableList;
|
||||
|
||||
QJsonArray::ConstIterator iterPaths = paths.begin();
|
||||
QJsonArray::ConstIterator iterDisabledEfx = disabledEfx.begin();
|
||||
|
||||
for(; iterPaths != paths.end() and iterDisabledEfx != disabledEfx.end() ; ++iterPaths, ++iterDisabledEfx)
|
||||
for(auto p : paths)
|
||||
{
|
||||
efxPathList << (*iterPaths).toString();
|
||||
disableList << (*iterDisabledEfx).toString();
|
||||
efxPathList << p.toString();
|
||||
}
|
||||
for(auto efx : disabledEfx)
|
||||
{
|
||||
disableList << efx.toString();
|
||||
}
|
||||
|
||||
std::map<QString, EffectDefinition> availableEffects;
|
||||
@ -83,6 +83,10 @@ EffectEngine::EffectEngine(Hyperion * hyperion, const QJsonObject & jsonEffectCo
|
||||
}
|
||||
Info(_log, "%d effects loaded from directory %s", efxCount, path.toUtf8().constData());
|
||||
}
|
||||
else
|
||||
{
|
||||
Warning(_log, "Effect path \"%s\" does not exist",path.toUtf8().constData() );
|
||||
}
|
||||
}
|
||||
|
||||
foreach(auto item, availableEffects)
|
||||
|
Loading…
Reference in New Issue
Block a user