RE: [AD] al_list_config_entries

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


On Tue, 2005-06-21 at 20:24 -0400, Chris La Mantia wrote:
> From: Elias Pschernig
> > There won't be that many updates to 4.2.0. There only was 3 to 4.0.0.
> 
> Well, it's still less than ideal; my binaries will not run with the
> "official" 4.2 binary, and since the code uses Allegro internals, I can't
> just put it into my application code...
> 
> By the way: I use override_config_file quite a bit.  Does this code pick up
> entries out of both the override file and the original file?
> 

I think no, it just uses "config[0]", which I believe is only the
original file. I'll do some testing later today and post an updated
patch, since I'll need to use override_config_file as well.

I'm also wondering what to do about sub-sections. For example, my config
files look like this:

[entry1]
blah=1
bleh=2

[entry1/subsection]
blah=1
bleh=2

[entry2]
...

Now, if I list the contents of [entry1], it only finds blah and bleh,
but not [entry1/subsection]. I guess I will solve it in a simple way,
and just have another funcion: list_config_sections(), which lists all
sections, then I can filter out the ones I need.. in the example, the
ones starting with entry1/

-- 
Elias Pschernig





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