aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorMax Horn2008-08-30 21:51:13 +0000
committerMax Horn2008-08-30 21:51:13 +0000
commitbe85bf25a599932b155d44302e2465028780d461 (patch)
tree9fe045996968125a7eda4c8b7f038c3759a8e902 /engines/tinsel
parentfb66f42002b1764bf0ca4ce7c2b02fe47e559706 (diff)
downloadscummvm-rg350-be85bf25a599932b155d44302e2465028780d461.tar.gz
scummvm-rg350-be85bf25a599932b155d44302e2465028780d461.tar.bz2
scummvm-rg350-be85bf25a599932b155d44302e2465028780d461.zip
TINSEL: Write config changes to disk
svn-id: r34212
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/config.cpp4
-rw-r--r--engines/tinsel/inventory.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/tinsel/config.cpp b/engines/tinsel/config.cpp
index 43703ed5c8..cb2099c130 100644
--- a/engines/tinsel/config.cpp
+++ b/engines/tinsel/config.cpp
@@ -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
diff --git a/engines/tinsel/inventory.cpp b/engines/tinsel/inventory.cpp
index 66ee2f2a69..e30175f3a0 100644
--- a/engines/tinsel/inventory.cpp
+++ b/engines/tinsel/inventory.cpp
@@ -2971,6 +2971,9 @@ void KillInventory(void) {
if (bOpenConf) {
bOpenConf = false;
PopUpConf(OPTION);
+
+ // Write config changes
+ WriteConfig();
} else if (ino == INV_CONF)
InventoryIconCursor();
}