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

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


> 
> Could the second paramter in the set functions be a default value instead of 
> an error return? I'm finding myself writting lots of:
> 
> int err = 0;
> val = al_get_int("gfx/foo", &err);
> if (err) {
>     val = some_default;
> }
> 
> 

Maybe it would also be useful to have the first parameter be a path, much
like the current config routines work with the section name? E.g. if I want
to store some variables in a user program, let's say "musicvol" and
"highscore", and I want them to appear under "/user/" or maybe even under
"/<program name>/ - then I have to create a temporary string and construct
the complete name everytime the variables are accessed.

--
Elias Pschernig



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