changeset 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 0e0f73fed025
children d8c1706faac4
files src/timidity/libtimidity/common.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;
       }