Config/settings files (Was Re: SDL 2.0 : File and internationalisation)

Bill writes

One thing I’ve always wanted, even as an add-on library (not even
necessarily an SDL_* one), is a way to platform-independently manage
configuration files.

What I’m doing right now is a bunch of #ifdef’s, and rolling my own.

Sof.T replies

If you have already done it why not wrap it up as a library for the rest of
us :wink:

> > If you have already done it why not wrap it up as a library for the rest of > us ;-)

Because I don’t know how to do it under other platforms. :^)
For example, under Windows, I currently use stupid “progname.dat” or
"progname.cfg" files. I think it should be done using the ‘Registry’
(or however all other Windows programs do it).

I doubt what I have right now under Mac OS X is the best way
(probably better than what I’m doing under Windows).

No idea about Mac OS classic. No idea about BeOS.

:^(

-bill!On Thu, Mar 20, 2003 at 01:55:48PM -0000, SofT wrote:


bill at newbreedsoftware.com Hire me!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/bill/resume/

Maybe we could sort something between us, I know I would find it very
useful. What platform do you use? I currently use Windows XP, 98 and
Mandrake Linux.

Sof.T

@SofT

“Bill Kendrick” wrote in message
news:20030320084625.G7474 at sonic.net

> > If you have already done it why not wrap it up as a library for the rest

of

us :wink:

Because I don’t know how to do it under other platforms. :^)
For example, under Windows, I currently use stupid “progname.dat” or
"progname.cfg" files. I think it should be done using the ‘Registry’
(or however all other Windows programs do it).

I doubt what I have right now under Mac OS X is the best way
(probably better than what I’m doing under Windows).

No idea about Mac OS classic. No idea about BeOS.

:^(

-bill!


bill at newbreedsoftware.com Hire
me!
http://newbreedsoftware.com/bill/
http://newbreedsoftware.com/bill/resume/> On Thu, Mar 20, 2003 at 01:55:48PM -0000, SofT wrote:

I would suggest simple INI files since text files can be read with every
platform and there are no issuses with the byte order or such…
XML would also be an idea but an interpreter would make the executables
biggger and a bit slower… (but since the configuration files are mostly
loaded at start time it would not matter so much…)

 Johannes W.

“SofT” <sof.t at tesco.net> schrieb im Newsbeitrag
news:b5cuvd$uci$1 at main.gmane.org

Maybe we could sort something between us, I know I would find it very
useful. What platform do you use? I currently use Windows XP, 98 and
Mandrake Linux.

Sof.T

sof.t at tesco.net

“Bill Kendrick” wrote in message
news:20030320084625.G7474 at sonic.net

> > If you have already done it why not wrap it up as a library for the

rest

of

us :wink:

Because I don’t know how to do it under other platforms. :^)
For example, under Windows, I currently use stupid “progname.dat” or
"progname.cfg" files. I think it should be done using the ‘Registry’
(or however all other Windows programs do it).

I doubt what I have right now under Mac OS X is the best way
(probably better than what I’m doing under Windows).

No idea about Mac OS classic. No idea about BeOS.

:^(

-bill!


bill at newbreedsoftware.com
Hire> > On Thu, Mar 20, 2003 at 01:55:48PM -0000, SofT wrote:
me!

http://newbreedsoftware.com/bill/
http://newbreedsoftware.com/bill/resume/