[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.382,1.383 simon.h,1.115,1.116 vga.cpp,1.101,1.102

Travis Howell kirben at users.sourceforge.net
Fri Dec 19 22:40:02 CET 2003


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

Modified Files:
	simon.cpp simon.h vga.cpp 
Log Message:

Enable vgascript dump option.


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.382
retrieving revision 1.383
diff -u -d -r1.382 -r1.383
--- simon.cpp	20 Dec 2003 06:00:55 -0000	1.382
+++ simon.cpp	20 Dec 2003 06:39:24 -0000	1.383
@@ -333,6 +333,7 @@
 	_pause = 0;
 	_start_mainscript = 0;
 	_continous_mainscript = 0;
+	_start_vgascript = 0;
 	_continous_vgascript = 0;
 	_draw_images_debug = 0;
 	_dump_images = 0;
@@ -3526,6 +3527,10 @@
 		if (_debugMode)
 			_continous_mainscript ^= 1;
 		break;
+	case 'a':
+		if (_debugMode)
+			_start_vgascript ^= 1;
+		break;
 	case 'g':
 		if (_debugMode)
 			_continous_vgascript ^= 1;
@@ -4766,6 +4771,7 @@
 	
 	_start_mainscript = false;
 	_continous_mainscript = false;
+	_start_vgascript = false;
 	_continous_vgascript = false;
 	_draw_images_debug=false;
 
@@ -4775,6 +4781,8 @@
 		_continous_vgascript = true;
 	if (_debugLevel == 4)
 		_start_mainscript = true;
+	if (_debugLevel == 5)
+		_start_vgascript = true;
 
 	if (_game & GF_TALKIE) {
 		// English and German versions of Simon the Sorcerer 1 don't have full subtitles

Index: simon.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.h,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- simon.h	20 Dec 2003 06:00:55 -0000	1.115
+++ simon.h	20 Dec 2003 06:39:24 -0000	1.116
@@ -195,6 +195,7 @@
 	bool _pause;
 	bool _start_mainscript;
 	bool _continous_mainscript;
+	bool _start_vgascript;
 	bool _continous_vgascript;
 	bool _draw_images_debug;
 	bool _dump_images;

Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- vga.cpp	20 Dec 2003 04:34:24 -0000	1.101
+++ vga.cpp	20 Dec 2003 06:39:24 -0000	1.102
@@ -347,7 +347,8 @@
 	}
 #endif
 
-	//dump_vga_script(_cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6*)p)->script_offs), res, vga_sprite_id);
+	if (_start_vgascript)
+		dump_vga_script(_cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6*)p)->script_offs), res, vga_sprite_id);
 
 	add_vga_timer(VGA_DELAY_BASE, _cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6 *) p)->script_offs), vga_sprite_id, res);
 	_cur_vga_file_1 = old_file_1;





More information about the Scummvm-git-logs mailing list