Mail Archives: djgpp/1997/12/11/12:31:38
In article <0oXOeCAlktj0EwkD AT talula DOT demon DOT co DOT uk>,
Shawn AT talula DOT demon DOT co DOT uk says...
> Scott "Jerry" Lawrence writes:
> >Hi there. Is there anything on the web or in any archive
> >anywhere about using "config files" with allegro? I've been
> >mucking about with the config functions a little bit, and
> >I have it creating the .ini-like file, and writing everything
> >to the proper headings and such, but i cannot read it back
> >properly. I've checked upper/lowercase, and also i've checked
> >the file to be sure it's in there properly...
>
> There is nothing particularly complicated about those functions: just
> call get_config_string() to retrieve whatever variable you are
> interested in. Look at the save_joystick_data() and load_joystick_data()
> functions (in joystick.c) for a practical example.
>
> If you want more detailed help, you will have to post some of your code.
> I can't tell what you are doing wrong just by guesswork :-)
My bad. I was doing something really dumb. I thought i posted a
followup to my initial message, but i guess it got lost. I was calling
the Get_config_* before the set_config_file call. I didn't even notice
it until i set it aside and looked at it again a few hours later.
sorry 'bout that. It all seems to work great. :)
-j
- Raw text -