Re: [AD] exists under Unix

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


Shawn Hargreaves <shawn@xxxxxxxxxx> wrote:
> Peter Wang <tjaden@xxxxxxxxxx> writes:
> > Under Unix I think `exists' should use the FA_HIDDEN flag, so that files 
> > such as ~/.allegrorc can be found. 
> 
> Why? What's the logic for the Unix version working differently to on all 
> other platforms?

Ok, let's just call that a misguided attempt to solve a problem.  But
I would still like ~/.allegrorc to work, so how about this?

Change line 64 of usystem.c to:

	 if (file_exists(buf, FA_ARCH | FA_RDONLY | FA_HIDDEN, NULL)) {

-- 
tjaden@xxxxxxxxxx - http://www.psynet.net/~tjaden/
"The closer I get the worse it becomes..." - Nine Inch Nails
(Perhaps Trent is singing about a software project of his.)



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