[Scummvm-cvs-logs] SF.net SVN: scummvm:[52657] scummvm/trunk/engines/sci/console.cpp

lskovlun at users.sourceforge.net lskovlun at users.sourceforge.net
Thu Sep 9 15:38:01 CEST 2010


Revision: 52657
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52657&view=rev
Author:   lskovlun
Date:     2010-09-09 13:38:00 +0000 (Thu, 09 Sep 2010)

Log Message:
-----------
SCI/Debugger: Show class names in addition to addresses in class_table output.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/console.cpp

Modified: scummvm/trunk/engines/sci/console.cpp
===================================================================
--- scummvm/trunk/engines/sci/console.cpp	2010-09-09 13:30:15 UTC (rev 52656)
+++ scummvm/trunk/engines/sci/console.cpp	2010-09-09 13:38:00 UTC (rev 52657)
@@ -1141,10 +1141,12 @@
 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);
 		}
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list