[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.390,1.391

Travis Howell kirben at users.sourceforge.net
Sun Dec 21 08:52:00 CET 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv28863/simon

Modified Files:
	simon.cpp 
Log Message:

Add sfx_mute to simon


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.390
retrieving revision 1.391
diff -u -d -r1.390 -r1.391
--- simon.cpp	21 Dec 2003 16:01:36 -0000	1.390
+++ simon.cpp	21 Dec 2003 16:51:31 -0000	1.391
@@ -4776,6 +4776,13 @@
 
 	_sound = new SimonSound(_game, gss, _gameDataPath, _mixer);
 
+	if (ConfMan.hasKey("sfx_mute") && ConfMan.getBool("sfx_mute") == 1) {
+		if (_game == GAME_SIMON1DOS)
+			midi._enable_sfx ^= 1;
+		else
+			_sound->effectsPause(_effects_paused ^= 1);
+	}
+
 	loadGamePcFile(gss->gamepc_filename);
 
 	addTimeEvent(0, 1);





More information about the Scummvm-git-logs mailing list