Mercurial > audlegacy-plugins
comparison 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 |
comparison
equal
deleted
inserted
replaced
1248:0e0f73fed025 | 1249:a6b9946ca928 |
---|---|
52 } | 52 } |
53 | 53 |
54 /* First try the given name */ | 54 /* First try the given name */ |
55 | 55 |
56 DEBUG_MSG("Trying to open %s\n", name); | 56 DEBUG_MSG("Trying to open %s\n", name); |
57 if ((fp = vfs_fopen(name, OPEN_MODE))) | 57 if ((fp = vfs_fopen(g_filename_to_uri(name, NULL, NULL), OPEN_MODE))) |
58 return fp; | 58 return fp; |
59 | 59 |
60 if (name[0] != PATH_SEP) | 60 if (name[0] != PATH_SEP) |
61 { | 61 { |
62 char current_filename[1024]; | 62 char current_filename[1024]; |
76 current_filename[l + 1] = '\0'; | 76 current_filename[l + 1] = '\0'; |
77 } | 77 } |
78 } | 78 } |
79 strcat(current_filename, name); | 79 strcat(current_filename, name); |
80 DEBUG_MSG("Trying to open %s\n", current_filename); | 80 DEBUG_MSG("Trying to open %s\n", current_filename); |
81 if ((fp = vfs_fopen(current_filename, OPEN_MODE))) | 81 if ((fp = vfs_fopen(g_filename_to_uri(current_filename, NULL, NULL), OPEN_MODE))) |
82 return fp; | 82 return fp; |
83 plp = plp->next; | 83 plp = plp->next; |
84 } | 84 } |
85 } | 85 } |
86 | 86 |