[Scummvm-cvs-logs] CVS: scummvm/common gameDetector.cpp,1.55,1.56 gameDetector.h,1.18,1.19

Max Horn fingolfin at users.sourceforge.net
Mon Dec 30 18:10:01 CET 2002


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

Modified Files:
	gameDetector.cpp gameDetector.h 
Log Message:
get rid of DUMP_SCRIPTS; in its place, added run time option '-u' to enabled script dumping

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- gameDetector.cpp	28 Dec 2002 12:20:55 -0000	1.55
+++ gameDetector.cpp	31 Dec 2002 02:09:56 -0000	1.56
@@ -71,6 +71,7 @@
 	"\n"
 	"\t-b<num>    - start in room <num>\n"
 	"\t-d[<num>]  - enable debug output (debug level [1])\n"
+	"\t-u         - dump scripts\n"
 ;
 
 
@@ -205,8 +206,9 @@
 	_amiga = false;
 
 	_talkSpeed = 60;
-	_debugLevel = 0;
 	_debugMode = 0;
+	_debugLevel = 0;
+	_dumpScripts = 0;
 	_noSubtitles = false;
 	_bootParam = 0;
 
@@ -426,6 +428,10 @@
 				HANDLE_OPTION();
 				_gameTempo = strtol(option, 0, 0);
 				g_config->set("tempo", option);
+				break;
+			case 'u':
+				CHECK_OPTION();
+				_dumpScripts = true;
 				break;
 			case 'v':
 				CHECK_OPTION();

Index: gameDetector.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- gameDetector.h	25 Dec 2002 00:36:04 -0000	1.18
+++ gameDetector.h	31 Dec 2002 02:09:56 -0000	1.19
@@ -136,6 +136,7 @@
 	uint16 _talkSpeed;
 	uint16 _debugMode;
 	uint16 _debugLevel;
+	bool _dumpScripts;
 	bool _noSubtitles;
 	uint16 _bootParam;
 





More information about the Scummvm-git-logs mailing list