[Scummvm-cvs-logs] CVS: scummvm/common gameDetector.cpp,1.123,1.124 gameDetector.h,1.50,1.51

Travis Howell kirben at users.sourceforge.net
Tue Jul 29 05:14:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv22057a/common

Modified Files:
	gameDetector.cpp gameDetector.h 
Log Message:

Add option for the demo included in Maniac Mansion (Classic version)


Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.cpp,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- gameDetector.cpp	28 Jul 2003 01:50:23 -0000	1.123
+++ gameDetector.cpp	29 Jul 2003 12:13:39 -0000	1.124
@@ -83,6 +83,9 @@
 	"\t--multi-midi   - enable combination Adlib and native MIDI\n"
 	"\t--native-mt32  - true Roland MT-32 (disable GM emulation)\n"
 	"\t--aspect-ratio - enable aspect ratio correction\n"
+#ifndef DISABLE_SCUMM
+	"\t--demo-mode    - Start demo mode of Maniac Mansion (Classic version)\n"
+#endif
 #ifndef DISABLE_SKY
 	"\t--floppy-intro - Use floppy version intro for Beneath a Steel Sky CD\n"
 #endif
@@ -168,6 +171,10 @@
 	_amiga = false;
 	_language = 0;
 
+#ifndef DISABLE_SCUMM
+	_demo_mode = false;
+#endif
+
 #ifndef DISABLE_SKY
 	_floppyIntro = false;
 #endif
@@ -286,6 +293,10 @@
 	_floppyIntro = g_config->getBool("floppy_intro", _floppyIntro);
 #endif
 
+#ifndef DISABLE_SCUMM
+	_demo_mode = g_config->getBool("demo_mode", _demo_mode);
+#endif
+
 	if ((val = g_config->get("language")))
 		if ((_language = parseLanguage(val)) == -1) {
 			printf("Error in the config file: invalid language.\n");
@@ -494,6 +505,12 @@
 				} else if (!strcmp (s, "aspect-ratio")) {
 					_aspectRatio = long_option_value;
 					g_config->setBool ("aspect_ratio", _aspectRatio);
+#ifndef DISABLE_SCUMM
+				} else if (!strcmp (s, "demo-mode")) {
+					_demo_mode = long_option_value;
+					g_config->setBool ("demo_mode", _demo_mode);
+#endif
+
 #ifndef DISABLE_SKY
 				} else if (!strcmp (s, "floppy-intro")) {
 					_floppyIntro = long_option_value;

Index: gameDetector.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- gameDetector.h	28 Jul 2003 01:36:16 -0000	1.50
+++ gameDetector.h	29 Jul 2003 12:13:39 -0000	1.51
@@ -122,6 +122,7 @@
 	bool _amiga;
 	int _language;
 
+	bool _demo_mode;
 	bool _floppyIntro;
 
 	uint16 _talkSpeed;





More information about the Scummvm-git-logs mailing list