Mercurial > audlegacy
diff Plugins/Input/timidity/libtimidity/common.c @ 480:c1dfb4b13be8 trunk
[svn] Use the VFS layer.
author | chainsaw |
---|---|
date | Sat, 21 Jan 2006 07:12:02 -0800 |
parents | d1762728ea4b |
children | d539e5c5f730 |
line wrap: on
line diff
--- a/Plugins/Input/timidity/libtimidity/common.c Sat Jan 21 06:32:50 2006 -0800 +++ b/Plugins/Input/timidity/libtimidity/common.c Sat Jan 21 07:12:02 2006 -0800 @@ -25,7 +25,7 @@ # include <config.h> #endif -#include <stdio.h> +#include "libaudacious/vfs.h" #include <stdlib.h> #include <string.h> @@ -41,9 +41,9 @@ static PathList *pathlist = NULL; /* This is a linked list */ /* This is meant to find and open files for reading */ -FILE *open_file(char *name) +VFSFile *open_file(char *name) { - FILE *fp; + VFSFile *fp; if (!name || !(*name)) { @@ -54,7 +54,7 @@ /* First try the given name */ DEBUG_MSG("Trying to open %s\n", name); - if ((fp = fopen(name, OPEN_MODE))) + if ((fp = vfs_fopen(name, 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 = fopen(current_filename, OPEN_MODE))) + if ((fp = vfs_fopen(current_filename, OPEN_MODE))) return fp; plp = plp->next; }