Add debug levels for simon games

svn-id: r5860
This commit is contained in:
Travis Howell 2002-12-06 15:24:14 +00:00
parent 102525f27f
commit ad1ad142d0
4 changed files with 11 additions and 3 deletions

View file

@ -29,9 +29,6 @@
#include "common/config-file.h" #include "common/config-file.h"
extern uint16 _debugLevel;
#define CHECK_OPTION() if ((current_option != NULL) || (*s != '\0')) goto ShowHelpAndExit #define CHECK_OPTION() if ((current_option != NULL) || (*s != '\0')) goto ShowHelpAndExit
#define HANDLE_OPTION() if ((*s == '\0') && (current_option == NULL)) goto ShowHelpAndExit; \ #define HANDLE_OPTION() if ((*s == '\0') && (current_option == NULL)) goto ShowHelpAndExit; \
if ((*s != '\0') && (current_option != NULL)) goto ShowHelpAndExit; \ if ((*s != '\0') && (current_option != NULL)) goto ShowHelpAndExit; \

View file

@ -119,6 +119,7 @@ public:
uint16 _talkSpeed; uint16 _talkSpeed;
uint16 _debugMode; uint16 _debugMode;
uint16 _debugLevel;
bool _noSubtitles; bool _noSubtitles;
uint16 _bootParam; uint16 _bootParam;

View file

@ -138,7 +138,9 @@ SimonState::SimonState(GameDetector *detector, OSystem *syst)
"Features of the game that depend on sound synchronization will most likely break"); "Features of the game that depend on sound synchronization will most likely break");
midi.set_volume(detector->_music_volume); midi.set_volume(detector->_music_volume);
set_volume(detector->_sfx_volume); set_volume(detector->_sfx_volume);
_debugMode = detector->_debugMode; _debugMode = detector->_debugMode;
_debugLevel = detector->_debugLevel;
_effects_paused = false; _effects_paused = false;
_ambient_paused = false; _ambient_paused = false;
@ -4468,6 +4470,13 @@ void SimonState::go()
_continous_mainscript = false; _continous_mainscript = false;
_continous_vgascript = false; _continous_vgascript = false;
if (_debugLevel == 2)
_continous_mainscript = true;
if (_debugLevel == 3)
_continous_vgascript = true;
if (_debugLevel == 4)
_start_mainscript = true;
if (_sound->hasVoice()) { if (_sound->hasVoice()) {
_vk_t_toggle = false; _vk_t_toggle = false;
} else { } else {

View file

@ -175,6 +175,7 @@ public:
bool _mouse_pos_changed; bool _mouse_pos_changed;
uint16 _debugMode; uint16 _debugMode;
uint16 _debugLevel;
bool _start_mainscript; bool _start_mainscript;
bool _continous_mainscript; bool _continous_mainscript;
bool _continous_vgascript; bool _continous_vgascript;