[Scummvm-cvs-logs] SF.net SVN: scummvm:[45096] scummvm/trunk/engines/sci/engine/vm.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Thu Oct 15 00:40:44 CEST 2009


Revision: 45096
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45096&view=rev
Author:   wjpalenstijn
Date:     2009-10-14 22:40:43 +0000 (Wed, 14 Oct 2009)

Log Message:
-----------
SCI: Fix build with VM_DEBUG_SEND enabled

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/vm.cpp

Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp	2009-10-14 22:37:05 UTC (rev 45095)
+++ scummvm/trunk/engines/sci/engine/vm.cpp	2009-10-14 22:40:43 UTC (rev 45096)
@@ -303,7 +303,7 @@
 		}
 
 #ifdef VM_DEBUG_SEND
-		printf("Send to %04x:%04x, selector %04x (%s):", PRINT_REG(send_obj), selector, s->_selectorNames[selector].c_str());
+		printf("Send to %04x:%04x, selector %04x (%s):", PRINT_REG(send_obj), selector, ((SciEngine*)g_engine)->getKernel()->getSelectorName(selector).c_str());
 #endif // VM_DEBUG_SEND
 
 		ObjVarRef varp;
@@ -357,7 +357,7 @@
 #ifdef VM_DEBUG_SEND
 			printf("Funcselector(");
 			for (int i = 0; i < argc; i++) {
-				printf(PREG, PRINT_REG(argp[i+1]));
+				printf("%04x:%04x", PRINT_REG(argp[i+1]));
 				if (i + 1 < argc)
 					printf(", ");
 			}


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