diff options
author | James Brown | 2003-08-13 16:24:35 +0000 |
---|---|---|
committer | James Brown | 2003-08-13 16:24:35 +0000 |
commit | 5dd554c47a02c02b533180a3556b08ce9b014fc9 (patch) | |
tree | 2ba5e76527157943408842b66ef90fa570eb97cb | |
parent | eba32fbd0c06e8bd57be68e1a9d67652c95fe877 (diff) | |
download | scummvm-rg350-5dd554c47a02c02b533180a3556b08ce9b014fc9.tar.gz scummvm-rg350-5dd554c47a02c02b533180a3556b08ce9b014fc9.tar.bz2 scummvm-rg350-5dd554c47a02c02b533180a3556b08ce9b014fc9.zip |
Add 'name' lookup ability to debuggers "actor" and "object" commands
svn-id: r9663
-rw-r--r-- | scumm/debugger.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 055c8d0936..84b6f5d3e7 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -633,6 +633,8 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) { _s->_fullRedraw = 1; Debug_Printf("Actor[%d].costume = %d\n", actnum, a->costume); } + } else if (!strcmp(argv[2], "name")) { + Debug_Printf("Name of actor %d: %s\n", actnum, _s->getObjOrActorName(actnum)); } else { Debug_Printf("Unknown actor command '%s'\nUse <ignoreboxes |costume> as command\n", argv[2]); } @@ -711,11 +713,12 @@ bool ScummDebugger::Cmd_Object(int argc, const char **argv) { _s->removeObjectFromRoom(obj); _s->clearDrawObjectQueue(); _s->runInventoryScript(obj); - } else if (!strcmp(argv[2], "state")) { _s->putState(obj, atoi(argv[3])); //is BgNeedsRedraw enough? _s->_BgNeedsRedraw = true; + } else if (!strcmp(argv[2], "name")) { + Debug_Printf("Name of object %d: %s\n", obj, _s->getObjOrActorName(obj)); } else { Debug_Printf("Unknown object command '%s'\nUse <pickup | state> as command\n", argv[2]); } |