RE: [AD] Allegro 5 new config routines, alpha 2

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


Title: RE: [AD] Allegro 5 new config routines, alpha 2

> I thought about that too, but then, wouldn't *every* path
> start with "/"?
> Instead of absolute, we should make it relative to the root.

Hmm, probably overkill, but ...
How about adding (I know, I add plenty of stuff... :)):
void al_cd(const char*);

if doing:
al_cd("/foo");

then bar/baz would resolve as /foo/bar/baz

If supporting .. and ., one would be able to store config
for several versions of a same package in the same config
file (say, ~/.allegrorc) and they would be able to coexist
with different settings, if one issues:
al_cd("program_v1.0") or al_cd("program_v2.0")
The .. and . are not *that* necessary though, but the root
setting would be interesting.
And ... How about mapping that on the actual filesystem ?
Nah, would probably be worth only for thousands of entries :)
Sorry, just thinking aloud here :)

--
Vincent Penquerc'h



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