Re: [AD] Config files issues

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


Grzegorz Adam Hankiewicz wrote:
[snipped long and mostly agreed text]
>   AL_CFG *custom_config = al_load_config_file("database/users.cfg")
>   int value = custom_config->get_int(section, variable, default);

I don't think that will work: get_int() won't have the pointer to the
actual AL_CFG object, unless you give it as a parameter, in which case
we can just as well have al_get_int() as a normal function...

-- 
Sven Sandberg    svsa1977@xxxxxxxxxx    home.student.uu.se/svsa1977



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