aboutsummaryrefslogtreecommitdiff
path: root/simon/vga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/vga.cpp')
-rw-r--r--simon/vga.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp
index 541c952d83..598897d7f4 100644
--- a/simon/vga.cpp
+++ b/simon/vga.cpp
@@ -113,7 +113,7 @@ void SimonState::run_vga_script()
for (;;) {
uint opcode;
-#ifdef DUMP_CONTINOUS_VGASCRIPT
+if (_vgascript_toggle) {
if ((void *)_vc_ptr != (void *)&vc_get_out_of_code) {
// if (_vga_cur_sprite_id==62 && _vga_cur_file_id==68 ||
// _vga_cur_sprite_id==1 && _vga_cur_file_id==2) {
@@ -122,7 +122,7 @@ void SimonState::run_vga_script()
dump_video_script(_vc_ptr, true);
// }
}
-#endif
+}
if (!(_game & GAME_SIMON2)) {
opcode = READ_BE_UINT16_UNALIGNED(_vc_ptr);
@@ -196,9 +196,8 @@ void SimonState::vc_skip_next_instruction()
_vc_ptr += opcode_param_len_simon1[opcode];
}
-#ifdef DUMP_CONTINOUS_VGASCRIPT
- fprintf(_dump_file, "; skipped\n");
-#endif
+ if (_vgascript_toggle)
+ fprintf(_dump_file, "; skipped\n");
}
void SimonState::o_read_vgares_23()
@@ -1654,9 +1653,8 @@ void SimonState::vc_56_no_op()
if (_game & GAME_SIMON2) {
uint num = vc_read_var_or_word() * _vga_base_delay;
-#ifdef DUMP_CONTINOUS_VGASCRIPT
- fprintf(_dump_file, "; sleep_ex = %d\n", num + gss->VGA_DELAY_BASE);
-#endif
+ if (_vgascript_toggle)
+ fprintf(_dump_file, "; sleep_ex = %d\n", num + gss->VGA_DELAY_BASE);
add_vga_timer(num + gss->VGA_DELAY_BASE, _vc_ptr, _vga_cur_sprite_id, _vga_cur_file_id);
_vc_ptr = (byte *)&vc_get_out_of_code;