Re: [AD] Packfiles and #

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


On Friday 23 July 2004 14:15, Elias Pschernig wrote:
> 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.

Good point. That may be an overall cleaner approach:

if (ustrchr(filename, '#') && exists(portion_of_filename_before_sharp))

One thing that needs to be checked as well is if _al_file_is_ok() does not 
disallow # characters in file names.

Evert





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