Re: [AD] Packfiles and #

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Fri, 2004-07-23 at 19:11 +1000, aj wrote:
> sorry for being so lame as to not understand  the path system..
> but i think  this single line additition is what is needed..
> 
> from wip 4.1.14 / src/file.c /  pack_fopen()  line 1688
> 
>     _packfile_type = 0;
> +   if ( !exists(filename))
>          if (ustrchr(filename, '#'))
>            return pack_fopen_special_file(filename, mode);
>     if (!_al_file_isok(filename))
>        return NULL;
> 
> 
> 

What if both exist? The datafile and the file? To keep existing programs
working, we should rather check for the existence of the datafile than
the file with the # in it. If there's no datafile, then try to open it
as file.

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/