Commit 864fdf72 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectsEngine: Search for effects on MacOSx too

parent 5ab1a8ca
......@@ -138,9 +138,10 @@ EffectsEngine::loadEffects()
QString("/usr/local/lib/frei0r-1/") <<
QString("/usr/lib/frei0r-1/" );
}
#elif defined ( Q_OS_WIN32 )
#else
/* Search in the application folder */
pathList << qApp->applicationDirPath() + "/effects/";
# if defined ( Q_OS_WIN32 )
TCHAR appDir[128];
if ( GetModuleFileName( NULL, appDir, 128 ) > 0 )
{
......@@ -158,6 +159,7 @@ EffectsEngine::loadEffects()
qWarning() << "Failed to get application directory. Using current path.";
pathList << QDir::currentPath() + "/effects/";
}
# endif
#endif
qDebug() << "Loading effects from:" << pathList;
foreach ( const QString &path, pathList )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment