[Scummvm-devel] More details about scummcfg
Nicolas Noble
Pixel at the-babel-tower.nobis-crew.org
Sun May 12 15:23:03 CEST 2002
Ok, I did fixed up two bugs about the config system. And now to explain
here a bit more how it works.
There is two categories of config options. The generals and the game
specific. The game specific are:
switch .ini-name
-a amiga
-c cdrom
-e music_driver
-m music_volume
-n nosubtitles
-p path
-s sfx_volume
-t tempo
-y talkspeed
And the general are:
switch .ini-name
-f fullscreen
-g gfx_mode
Now if you want to access the gamespecific options just leave the domain
out. The default domain is always set to the game name the user selected.
If you want any other section, then tell it in the get() or set()
arguments.
Morover, the flush() does save all the config. So it caused problem in the
gui where somebody did add a flush(). So I had to add a switch into the
class to be able to track if the used asked for a config-file-save or not.
This switch does only disable flush() if switched off. To switch it on or
off, just scummcfg->set_writing(bool);
I think the guy who wrote the config file system for wince have to enable
this switch since there is flush()s into his code.
Have fun!
-- Nicolas Noble
More information about the Scummvm-devel
mailing list