delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/11/12:31:38

From: jerry AT eteklabs DOT com (Scott "Jerry" Lawrence)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and Config files
Date: Thu, 11 Dec 1997 12:25:57 -0500
Message-ID: <MPG.ef9ec308e1df5209896ae@gateway>
References: <MPG DOT ef79d8241b88b199896ad AT gateway> <0oXOeCAlktj0EwkD AT talula DOT demon DOT co DOT uk>
Organization: e-TEK Labs
NNTP-Posting-Host: dial-dominion-6.netacc.net
Lines: 27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019