diff options
-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; |