From a6e6fcac6028fda93c43bcd6e3628e1e4f51499c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Fri, 23 May 2008 23:47:25 +0000 Subject: added a message to load the plugins svn path=/trunk/externals/pdvjtools/; revision=9882 --- pdp_freeframe/pdp_freeframe.c | 6 ++++-- 1 file 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); } -- cgit v1.2.1