Re: [AD] al_create_native_file_dialog

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


On 2011-01-20, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> On Thu, Jan 20, 2011 at 11:24 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> > Just throwing this out here, but, it may be possible or happen some time
> > that a > 8 bit character is used as a path seperator, so a single char
> > wouldn't work there.
> >
> That's a good point... probably enough reason to justify using a const char*.
> 
> I doubt a filesystem would ever do that, but I suppose it's possible
> that somebody would use al_path_cstr() to display a path on screen,
> and want to use a special higher unicode character as the separator.
> 
> Again, not likely, but it's better than having to add
> al_path_cstr_ex() function in the future.

I think we should leave al_path_cstr as-is at this stage.  It can be a
bit annoying, but it *is* more general and doesn't require adding more
to the API.  There can be times you want to use '/' regardless of the OS.

al_create_native_file_dialog should be changed though.
It is an oversight.

Peter




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