istereo2

diff src/respath.c @ 24:9d53a4938ce8

port to android mostly complete, ads not done, and needs some polishing
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Oct 2015 08:15:24 +0300
parents 81d35769f546
children
line diff
     1.1 --- a/src/respath.c	Sat Oct 03 06:10:30 2015 +0300
     1.2 +++ b/src/respath.c	Sun Oct 04 08:15:24 2015 +0300
     1.3 @@ -24,6 +24,7 @@
     1.4  #include <unistd.h>
     1.5  #include "respath.h"
     1.6  #include "config.h"
     1.7 +#include "assman.h"
     1.8  
     1.9  #ifdef IPHONE
    1.10  #include <CoreFoundation/CoreFoundation.h>
    1.11 @@ -64,8 +65,11 @@
    1.12  
    1.13  	node = pathlist;
    1.14  	while(node) {
    1.15 +		ass_file *fp;
    1.16 +
    1.17  		snprintf(path, sz, "%s/%s", node->path, fname);
    1.18 -		if(access(path, F_OK) != -1) {
    1.19 +		if((fp = ass_fopen(path, "r"))) {
    1.20 +			ass_fclose(fp);
    1.21  			return path;
    1.22  		}
    1.23  		node = node->next;