[vlmc-devel] EffectsEngine: Search for frei0r plugins in the application folder.
Rohit Yadav
git at videolan.org
Fri Mar 25 03:50:36 CET 2011
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Mar 25 08:59:50 2011 +0530| [52d541ac5d4621b295253e50e07172b4bd2d7bd2] | committer: Rohit Yadav
EffectsEngine: Search for frei0r plugins in the application folder.
This should work out for both Mac and Windows.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=52d541ac5d4621b295253e50e07172b4bd2d7bd2
---
src/EffectsEngine/EffectsEngine.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/EffectsEngine/EffectsEngine.cpp b/src/EffectsEngine/EffectsEngine.cpp
index 18801b5..6c2f40e 100644
--- a/src/EffectsEngine/EffectsEngine.cpp
+++ b/src/EffectsEngine/EffectsEngine.cpp
@@ -26,6 +26,7 @@
#include "EffectInstance.h"
#include "Types.h"
+#include <QApplication>
#include <QDesktopServices>
#include <QDir>
#include <QProcess>
@@ -126,6 +127,9 @@ EffectsEngine::loadEffects()
{
QStringList pathList;
+ /* Search in the application folder */
+ pathList << qApp->applicationDirPath() + "/effects/";
+
#if defined( Q_OS_UNIX )
const QProcessEnvironment &env = QProcessEnvironment::systemEnvironment();
if ( env.contains( "FREI0R_PATH" ) == true )
More information about the Vlmc-devel
mailing list