Mail Archives: djgpp/1997/12/10/16:46:30
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 :-)
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -