[Scummvm-cvs-logs] SF.net SVN: scummvm:[34212] scummvm/trunk/engines/tinsel

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Aug 30 23:51:14 CEST 2008


Revision: 34212
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34212&view=rev
Author:   fingolfin
Date:     2008-08-30 21:51:13 +0000 (Sat, 30 Aug 2008)

Log Message:
-----------
TINSEL: Write config changes to disk

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/config.cpp
    scummvm/trunk/engines/tinsel/inventory.cpp

Modified: scummvm/trunk/engines/tinsel/config.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/config.cpp	2008-08-30 21:43:36 UTC (rev 34211)
+++ scummvm/trunk/engines/tinsel/config.cpp	2008-08-30 21:51:13 UTC (rev 34212)
@@ -53,9 +53,8 @@
 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 @@
 	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

Modified: scummvm/trunk/engines/tinsel/inventory.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/inventory.cpp	2008-08-30 21:43:36 UTC (rev 34211)
+++ scummvm/trunk/engines/tinsel/inventory.cpp	2008-08-30 21:51:13 UTC (rev 34212)
@@ -2971,6 +2971,9 @@
 	if (bOpenConf) {
 		bOpenConf = false;
 		PopUpConf(OPTION);
+		
+		// Write config changes
+		WriteConfig();
 	} else if (ino == INV_CONF)
 		InventoryIconCursor();
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list