Mercurial > audlegacy-plugins
diff src/timidity/libtimidity/common.c @ 1249:a6b9946ca928
Supposedly fix timidity config file URI. Untested. Yell at Crazy_Hopper, not me.
| author | Alex Maclean <monkeh@monkeh.net> |
|---|---|
| date | Fri, 13 Jul 2007 00:20:37 +0000 |
| parents | 3da1b8942b8b |
| children | f14d11bf9cbb |
line wrap: on
line diff
--- a/src/timidity/libtimidity/common.c Thu Jul 12 19:58:09 2007 +0200 +++ b/src/timidity/libtimidity/common.c Fri Jul 13 00:20:37 2007 +0000 @@ -54,7 +54,7 @@ /* First try the given name */ DEBUG_MSG("Trying to open %s\n", name); - if ((fp = vfs_fopen(name, OPEN_MODE))) + if ((fp = vfs_fopen(g_filename_to_uri(name, NULL, NULL), OPEN_MODE))) return fp; if (name[0] != PATH_SEP) @@ -78,7 +78,7 @@ } strcat(current_filename, name); DEBUG_MSG("Trying to open %s\n", current_filename); - if ((fp = vfs_fopen(current_filename, OPEN_MODE))) + if ((fp = vfs_fopen(g_filename_to_uri(current_filename, NULL, NULL), OPEN_MODE))) return fp; plp = plp->next; }
