aboutsummaryrefslogtreecommitdiff
path: root/debug.cpp
diff options
context:
space:
mode:
authorLudvig Strigeus2001-12-27 17:51:58 +0000
committerLudvig Strigeus2001-12-27 17:51:58 +0000
commit5a7b86cbf6d31b94e95843f7324052dea561e10d (patch)
tree025539c4ed59c91eb0a7f711c7916f8e26402c53 /debug.cpp
parent1caad519e208320033b4560074d6d25467cd7648 (diff)
downloadscummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.tar.gz
scummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.tar.bz2
scummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.zip
better full throttle support,
a couple of MI2 fixes. svn-id: r3532
Diffstat (limited to 'debug.cpp')
-rw-r--r--debug.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/debug.cpp b/debug.cpp
index 5dd4c5f7fa..8e17616c2e 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -37,6 +37,7 @@ enum {
CMD_GO,
CMD_ACTOR,
CMD_SCRIPTS,
+ CMD_LOAD_ROOM,
CMD_EXIT
};
@@ -65,6 +66,7 @@ bool ScummDebugger::do_command() {
"(q)uit -> quit the debugger\n"
"(g)o [numframes] -> increase frame\n"
"(a)ctor [actornum] -> show actor information\n"
+ "(r)oom roomnum -> load room\n"
"(s)cripts -> show running scripts\n"
"(e)xit -> exit game\n"
);
@@ -89,6 +91,17 @@ bool ScummDebugger::do_command() {
case CMD_SCRIPTS:
printScripts();
return true;
+ case CMD_LOAD_ROOM:
+ if (!_parameters[0]) {
+ printf("Enter a room number...\n");
+ } else {
+ int room=atoi(_parameters);
+ _s->actor[_s->_vars[VAR_EGO]].room=room;
+ _s->startScene(room, 0, 0);
+ _s->_fullRedraw = 1;
+ }
+ return true;
+
case CMD_EXIT:
exit(1);
}
@@ -130,6 +143,7 @@ static const DebuggerCommands debugger_commands[] = {
{ "g", 1, CMD_GO },
{ "a", 1, CMD_ACTOR },
{ "s", 1, CMD_SCRIPTS },
+ { "r", 1, CMD_LOAD_ROOM },
{ "e", 1, CMD_EXIT },
{ 0, 0, 0 },
};