aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorLars Skovlund2010-09-09 13:38:00 +0000
committerLars Skovlund2010-09-09 13:38:00 +0000
commite51b0f6b56fb4b3ee054e8de7b4f7489782ff74c (patch)
tree2122ba5d3cd1b844b3aa3592650aef4b8de26d82 /engines
parent68dd99643c63a20baec740923f69a470615eae38 (diff)
downloadscummvm-rg350-e51b0f6b56fb4b3ee054e8de7b4f7489782ff74c.tar.gz
scummvm-rg350-e51b0f6b56fb4b3ee054e8de7b4f7489782ff74c.tar.bz2
scummvm-rg350-e51b0f6b56fb4b3ee054e8de7b4f7489782ff74c.zip
SCI/Debugger: Show class names in addition to addresses in class_table output.
svn-id: r52657
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/console.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 6246754ec4..4a572cca18 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -1141,10 +1141,12 @@ bool Console::cmdRestartGame(int argc, const char **argv) {
bool Console::cmdClassTable(int argc, const char **argv) {
DebugPrintf("Available classes:\n");
for (uint i = 0; i < _engine->_gamestate->_segMan->classTableSize(); i++) {
- if (_engine->_gamestate->_segMan->_classTable[i].reg.segment) {
- DebugPrintf(" Class 0x%x at %04x:%04x (script 0x%x)\n", i,
- PRINT_REG(_engine->_gamestate->_segMan->_classTable[i].reg),
- _engine->_gamestate->_segMan->_classTable[i].script);
+ Class temp = _engine->_gamestate->_segMan->_classTable[i];
+ if (temp.reg.segment) {
+ DebugPrintf(" Class 0x%x (%s) at %04x:%04x (script 0x%x)\n", i,
+ _engine->_gamestate->_segMan->getObjectName(temp.reg),
+ PRINT_REG(temp.reg),
+ temp.script);
}
}