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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Dec 26 18:10:44 CET 2009


Revision: 46596
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46596&view=rev
Author:   thebluegr
Date:     2009-12-26 17:10:43 +0000 (Sat, 26 Dec 2009)

Log Message:
-----------
Throw a warning when we're trying to invoke a variable selector, instead of swallowing it silently. This should never happen, so we shouldn't hide it, when it does

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

Modified: scummvm/trunk/engines/sci/engine/selector.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/selector.cpp	2009-12-26 16:59:14 UTC (rev 46595)
+++ scummvm/trunk/engines/sci/engine/selector.cpp	2009-12-26 17:10:43 UTC (rev 46596)
@@ -74,8 +74,11 @@
 			error("[Kernel] Not recoverable: VM was halted");
 		return 1;
 	}
-	if (slc_type == kSelectorVariable) // Swallow silently
+	if (slc_type == kSelectorVariable) {
+		warning("Attempting to invoke variable selector %s of object %04x:%04x", 
+			s->_kernel->getSelectorName(selector_id).c_str(), PRINT_REG(object));
 		return 0;
+	}
 
 	va_start(argp, argc);
 	for (i = 0; i < argc; i++) {


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