diff options
author | Jonathan Gray | 2003-04-20 06:55:09 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-04-20 06:55:09 +0000 |
commit | c597d0d4d6c989dea6631365466c2b32d394bb6e (patch) | |
tree | fdb38d6bdf235b2da4d595e92a700439eed41a6a /scumm/debugger.cpp | |
parent | 1d01a68cac52923f62106a8d56d67d63bbb7094f (diff) | |
download | scummvm-rg350-c597d0d4d6c989dea6631365466c2b32d394bb6e.tar.gz scummvm-rg350-c597d0d4d6c989dea6631365466c2b32d394bb6e.tar.bz2 scummvm-rg350-c597d0d4d6c989dea6631365466c2b32d394bb6e.zip |
add script hex dumping option to debugger
svn-id: r7024
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 72b6deb07f..8edbc66ac7 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -87,6 +87,9 @@ void ScummDebugger::attach(Scumm *s) { DCmd_Register("level", &ScummDebugger::Cmd_DebugLevel); DCmd_Register("help", &ScummDebugger::Cmd_Help); + + DCmd_Register("show", &ScummDebugger::Cmd_Show); + DCmd_Register("hide", &ScummDebugger::Cmd_Hide); } } @@ -321,6 +324,34 @@ bool ScummDebugger::Cmd_SaveGame(int argc, const char **argv) { return true; } +bool ScummDebugger::Cmd_Show(int argc, const char **argv) { + + if (argc != 2) { + Debug_Printf("Syntax: show <parameter>\n"); + return true; + } + + if (!strcmp(argv[1], "hex")) { + _s->_hexdumpScripts = true; + Debug_Printf("Script hex dumping on\n"); + } + return true; +} + +bool ScummDebugger::Cmd_Hide(int argc, const char **argv) { + + if (argc != 2) { + Debug_Printf("Syntax: hide <parameter>\n"); + return true; + } + + if (!strcmp(argv[1], "hex")) { + _s->_hexdumpScripts = false; + Debug_Printf("Script hex dumping off\n"); + } + return true; +} + bool ScummDebugger::Cmd_Actor(int argc, const char **argv) { Actor *a; int actnum; |