[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.77,1.78

James Brown ender at users.sourceforge.net
Wed Aug 13 14:27:33 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv23864/scumm

Modified Files:
	debugger.cpp 
Log Message:
Add 'name' lookup ability to debuggers "actor" and "object" commands


Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- debugger.cpp	11 Aug 2003 14:48:21 -0000	1.77
+++ debugger.cpp	13 Aug 2003 16:24:35 -0000	1.78
@@ -633,6 +633,8 @@
 				_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 @@
 		_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]);
 	}





More information about the Scummvm-git-logs mailing list