TINSEL: Write config changes to disk

svn-id: r34212
This commit is contained in:
Max Horn 2008-08-30 21:51:13 +00:00
parent fb66f42002
commit be85bf25a5
2 changed files with 4 additions and 3 deletions

View File

@ -53,9 +53,8 @@ int bAmerica = 0;
bool bNoBlocking;
/**
* WriteConfig()
* Write settings to config manager and flush the config file to disk.
*/
void WriteConfig(void) {
ConfMan.setInt("dclick_speed", dclickSpeed);
ConfMan.setInt("music_volume", (volMidi * Audio::Mixer::kMaxChannelVolume) / MAXMIDIVOL);
@ -64,7 +63,6 @@ void WriteConfig(void) {
ConfMan.setInt("talkspeed", (speedText * 255) / 100);
ConfMan.setBool("subtitles", bSubtitles);
//ConfMan.setBool("swap_buttons", bSwapButtons ? 1 : 0);
//ConfigData.language = language; // not necessary, as language has been set in the launcher
//ConfigData.bAmerica = bAmerica; // EN_USA / EN_GRB
// Store language for multilingual versions

View File

@ -2971,6 +2971,9 @@ void KillInventory(void) {
if (bOpenConf) {
bOpenConf = false;
PopUpConf(OPTION);
// Write config changes
WriteConfig();
} else if (ino == INV_CONF)
InventoryIconCursor();
}