[Scummvm-cvs-logs] SF.net SVN: scummvm: [29362] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Thu Nov 1 18:40:25 CET 2007


Revision: 29362
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29362&view=rev
Author:   peres001
Date:     2007-11-01 10:40:25 -0700 (Thu, 01 Nov 2007)

Log Message:
-----------
Added new debug command.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/debug.cpp
    scummvm/trunk/engines/parallaction/debug.h

Modified: scummvm/trunk/engines/parallaction/debug.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/debug.cpp	2007-11-01 17:39:58 UTC (rev 29361)
+++ scummvm/trunk/engines/parallaction/debug.cpp	2007-11-01 17:40:25 UTC (rev 29362)
@@ -68,6 +68,7 @@
 	DCmd_Register("zones",     WRAP_METHOD(Debugger, Cmd_Zones));
 	DCmd_Register("animations",     WRAP_METHOD(Debugger, Cmd_Animations));
 	DCmd_Register("localflags", WRAP_METHOD(Debugger, Cmd_LocalFlags));
+	DCmd_Register("locations", WRAP_METHOD(Debugger, Cmd_Locations));
 
 }
 
@@ -108,7 +109,19 @@
 	return true;
 }
 
+bool Debugger::Cmd_Locations(int argc, const char **argv) {
 
+	DebugPrintf("+------------------------------+---------+\n"
+				"| location name                |  flags  |\n"
+				"+------------------------------+---------+\n");
+	for (uint i = 0; i < _vm->_numLocations; i++) {
+		DebugPrintf("|%-30s| %08x|\n", _vm->_locationNames[i], _vm->_localFlags[i]);
+	}
+	DebugPrintf("+------------------------------+---------+\n");
+
+	return true;
+}
+
 bool Debugger::Cmd_LocalFlags(int argc, const char **argv) {
 
 	JobList::iterator b = _vm->_jobs.begin();

Modified: scummvm/trunk/engines/parallaction/debug.h
===================================================================
--- scummvm/trunk/engines/parallaction/debug.h	2007-11-01 17:39:58 UTC (rev 29361)
+++ scummvm/trunk/engines/parallaction/debug.h	2007-11-01 17:40:25 UTC (rev 29362)
@@ -26,6 +26,7 @@
 	bool Cmd_Zones(int argc, const char **argv);
 	bool Cmd_Animations(int argc, const char **argv);
 	bool Cmd_LocalFlags(int argc, const char **argv);
+	bool Cmd_Locations(int argc, const char **argv);
 };
 
 } // End of namespace Parallaction


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