work around strange problem that breaks fbpack when _showStack is a bool...
svn-id: r7027
This commit is contained in:
parent
303a48dbbc
commit
90dd401eab
3 changed files with 5 additions and 4 deletions
|
@ -335,7 +335,7 @@ bool ScummDebugger::Cmd_Show(int argc, const char **argv) {
|
|||
_s->_hexdumpScripts = true;
|
||||
Debug_Printf("Script hex dumping on\n");
|
||||
} else if (!strncmp(argv[1], "sta", 3)) {
|
||||
_s->_showStack = true;
|
||||
_s->_showStack = 1;
|
||||
Debug_Printf("Stack tracing on\n");
|
||||
} else {
|
||||
Debug_Printf("Unknown show parameter '%s'\n", argv[1]);
|
||||
|
@ -354,7 +354,7 @@ bool ScummDebugger::Cmd_Hide(int argc, const char **argv) {
|
|||
_s->_hexdumpScripts = false;
|
||||
Debug_Printf("Script hex dumping off\n");
|
||||
} else if (!strncmp(argv[1], "sta", 3)) {
|
||||
_s->_showStack = false;
|
||||
_s->_showStack = 0;
|
||||
Debug_Printf("Stack tracing off\n");
|
||||
} else {
|
||||
Debug_Printf("Unknown hide parameter '%s'\n", argv[1]);
|
||||
|
|
|
@ -280,7 +280,7 @@ void Scumm::executeScript() {
|
|||
int c;
|
||||
while (_currentScript != 0xFF) {
|
||||
|
||||
if (_showStack == true) {
|
||||
if (_showStack == 1) {
|
||||
printf("Stack:");
|
||||
for (c=0; c < _scummStackPos; c++) {
|
||||
printf(" %d", _scummStack[c]);
|
||||
|
|
|
@ -420,7 +420,8 @@ protected:
|
|||
|
||||
int16 _virtual_mouse_x, _virtual_mouse_y;
|
||||
int _bootParam;
|
||||
bool _dumpScripts, _hexdumpScripts, _showStack;
|
||||
bool _dumpScripts, _hexdumpScripts;
|
||||
int _showStack;
|
||||
uint16 _debugMode, _soundCardType;
|
||||
|
||||
/* Not sure where this stuff goes */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue