diff options
author | Travis Howell | 2003-12-20 06:39:24 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-20 06:39:24 +0000 |
commit | 6effdfac9ff960e9a9495b1750860b9200316fdb (patch) | |
tree | d2763a328c3b10a906c801098df7812d40b9e929 /simon | |
parent | fb89d1a32e6e1b0ce084b12e483634ec8302b600 (diff) | |
download | scummvm-rg350-6effdfac9ff960e9a9495b1750860b9200316fdb.tar.gz scummvm-rg350-6effdfac9ff960e9a9495b1750860b9200316fdb.tar.bz2 scummvm-rg350-6effdfac9ff960e9a9495b1750860b9200316fdb.zip |
Enable vgascript dump option.
svn-id: r11771
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 8 | ||||
-rw-r--r-- | simon/simon.h | 1 | ||||
-rw-r--r-- | simon/vga.cpp | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 7152934e62..66c1e3511f 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -333,6 +333,7 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) _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 @@ void SimonEngine::processSpecialKeys() { 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 @@ void SimonEngine::go() { _start_mainscript = false; _continous_mainscript = false; + _start_vgascript = false; _continous_vgascript = false; _draw_images_debug=false; @@ -4775,6 +4781,8 @@ void SimonEngine::go() { _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 diff --git a/simon/simon.h b/simon/simon.h index 91284968cc..49d92d7ab5 100644 --- a/simon/simon.h +++ b/simon/simon.h @@ -195,6 +195,7 @@ protected: bool _pause; bool _start_mainscript; bool _continous_mainscript; + bool _start_vgascript; bool _continous_vgascript; bool _draw_images_debug; bool _dump_images; diff --git a/simon/vga.cpp b/simon/vga.cpp index 6a80f1be30..a5036338c7 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -347,7 +347,8 @@ void SimonEngine::vc_3_new_sprite() { } #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; |