aboutsummaryrefslogtreecommitdiff
path: root/pdp_freeframe
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2008-05-23 23:47:25 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2008-05-23 23:47:25 +0000
commita6e6fcac6028fda93c43bcd6e3628e1e4f51499c (patch)
tree8e3eea36f8e7fabba910f0c2c4901ae4a6b6e7f6 /pdp_freeframe
parent352074da7738bbe6dc9ccec47b8e0ee0df79fb30 (diff)
added a message to load the plugins
svn path=/trunk/externals/pdvjtools/; revision=9882
Diffstat (limited to 'pdp_freeframe')
-rw-r--r--pdp_freeframe/pdp_freeframe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pdp_freeframe/pdp_freeframe.c b/pdp_freeframe/pdp_freeframe.c
index 7eaf1cc..1398ad3 100644
--- a/pdp_freeframe/pdp_freeframe.c
+++ b/pdp_freeframe/pdp_freeframe.c
@@ -94,8 +94,9 @@ static void scan_plugins(t_pdp_freeframe *x, char *plugindir)
x->x_filename_count = 0;
}
-void ff_loadplugins(t_pdp_freeframe *x, char *plugindir)
+void ff_loadplugins(t_pdp_freeframe *x, t_symbol *plugindirsymbol)
{
+ char* plugindir = plugindirsymbol->s_name;
char libname[PATH_MAX];
plugMainType *plugmain;
unsigned instance, numparameters;
@@ -428,7 +429,7 @@ void *pdp_freeframe_new(t_floatarg f)
//load the plugins
x->x_plugin_count = 0;
x->x_infosok = 0;
- ff_loadplugins(x, FF_PLUGIN_DIR);
+ //ff_loadplugins(x, FF_PLUGIN_DIR);
pdp_freeframe_plugin(x, f);
@@ -452,6 +453,7 @@ void pdp_freeframe_setup(void)
class_addmethod(pdp_freeframe_class, (t_method)pdp_freeframe_input_0, gensym("pdp"), A_SYMBOL, A_DEFFLOAT, A_NULL);
class_addmethod(pdp_freeframe_class, (t_method)pdp_freeframe_plugin, gensym("plugin"), A_FLOAT, A_NULL);
class_addmethod(pdp_freeframe_class, (t_method)pdp_freeframe_param, gensym("param"), A_FLOAT, A_FLOAT, A_NULL);
+ class_addmethod(pdp_freeframe_class, (t_method)ff_loadplugins, gensym("plugindir"), A_SYMBOL, A_NULL);
}