diff options
author | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2008-05-23 23:47:25 +0000 |
---|---|---|
committer | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2008-05-23 23:47:25 +0000 |
commit | a6e6fcac6028fda93c43bcd6e3628e1e4f51499c (patch) | |
tree | 8e3eea36f8e7fabba910f0c2c4901ae4a6b6e7f6 | |
parent | 352074da7738bbe6dc9ccec47b8e0ee0df79fb30 (diff) |
added a message to load the plugins
svn path=/trunk/externals/pdvjtools/; revision=9882
-rw-r--r-- | pdp_freeframe/pdp_freeframe.c | 6 |
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); } |