From 9348d09b180b43f0f02a84767df8de38eda86157 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Sat, 7 Mar 2009 18:16:06 +0000 Subject: - Fixed loader bug. Now loading SYSEX patches uses Pd search path not absolute path svn path=/trunk/externals/postlude/; revision=10842 --- dssi/src/dssi~.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dssi/src/dssi~.c b/dssi/src/dssi~.c index d2e97c2..a8a61c9 100644 --- a/dssi/src/dssi~.c +++ b/dssi/src/dssi~.c @@ -1607,7 +1607,7 @@ static t_int dssi_tilde_dssi_methods(t_dssi_tilde *x, t_symbol *s, int argc, t_a strcpy(key, "patches0"); /* FIX: duplicates code from load_plugin() */ - fd = canvas_open(x->x_canvas, "", "", + fd = canvas_open(x->x_canvas, filename, "", mydir, &filename, MAXPDSTRING, 0); if(fd >= 0){ @@ -1615,9 +1615,12 @@ static t_int dssi_tilde_dssi_methods(t_dssi_tilde *x, t_symbol *s, int argc, t_a pathlen = strlen(mydir); temp = &mydir[pathlen]; sprintf(temp, "/%s", filename); - post("%s", filepath); + //post("%s", filepath); + fp = fopen(filepath, "rb"); return 0; - /* fp = fopen(filepath, "rb"); */ + } + else{ + post("dssi~: unable to get file descriptor"); } /*From dx7_voice_data by Sean Bolton */ -- cgit v1.2.1