aboutsummaryrefslogtreecommitdiff
path: root/dssi/src/dssi~.c
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2009-03-07 18:16:06 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2009-03-07 18:16:06 +0000
commit9348d09b180b43f0f02a84767df8de38eda86157 (patch)
tree97ed2b4e749d731a99f27cf43e4b1f33ab2f1f68 /dssi/src/dssi~.c
parenta66abc4fb25c4ea526625c21cef1e7dfa7d6ea26 (diff)
- Fixed loader bug. Now loading SYSEX patches uses Pd search path not absolute path
svn path=/trunk/externals/postlude/; revision=10842
Diffstat (limited to 'dssi/src/dssi~.c')
-rw-r--r--dssi/src/dssi~.c9
1 files 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 */