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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Thu Dec 24 19:37:35 CET 2009


Revision: 46533
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46533&view=rev
Author:   mthreepwood
Date:     2009-12-24 18:37:35 +0000 (Thu, 24 Dec 2009)

Log Message:
-----------
Stub SCI32's kOnMe to give better debugging info (used when clicking in the GK1 menu).

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kernel.cpp
    scummvm/trunk/engines/sci/engine/kernel.h
    scummvm/trunk/engines/sci/engine/kernel32.cpp

Modified: scummvm/trunk/engines/sci/engine/kernel.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel.cpp	2009-12-24 17:40:45 UTC (rev 46532)
+++ scummvm/trunk/engines/sci/engine/kernel.cpp	2009-12-24 18:37:35 UTC (rev 46533)
@@ -351,6 +351,7 @@
 	DEFUN("RepaintPlane", kRepaintPlane, "o"),
 	DEFUN("FrameOut", kFrameOut, ""),
 	DEFUN("ListEachElementDo", kListEachElementDo, ".*"),
+	DEFUN("OnMe", kOnMe, "iio.*"),
 
 	// SCI2.1 Kernel Functions
 	DEFUN("Save", kSave, ".*"),

Modified: scummvm/trunk/engines/sci/engine/kernel.h
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel.h	2009-12-24 17:40:45 UTC (rev 46532)
+++ scummvm/trunk/engines/sci/engine/kernel.h	2009-12-24 18:37:35 UTC (rev 46533)
@@ -406,6 +406,7 @@
 reg_t kRepaintPlane(EngineState *s, int argc, reg_t *argv);
 reg_t kFrameOut(EngineState *s, int argc, reg_t *argv);
 reg_t kListEachElementDo(EngineState *s, int argc, reg_t *argv);
+reg_t kOnMe(EngineState *s, int argc, reg_t *argv);
 
 // SCI2.1 Kernel Functions
 reg_t kSave(EngineState *s, int argc, reg_t *argv);

Modified: scummvm/trunk/engines/sci/engine/kernel32.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel32.cpp	2009-12-24 17:40:45 UTC (rev 46532)
+++ scummvm/trunk/engines/sci/engine/kernel32.cpp	2009-12-24 18:37:35 UTC (rev 46533)
@@ -711,6 +711,16 @@
 	return NULL_REG;
 }
 
+reg_t kOnMe(EngineState *s, int argc, reg_t *argv) {
+	// This kernel function looks like it calls a function in the object (arg 2) with
+	// the x/y coordinates supplied in args 0/1. Arg 3 seems to be 0.
+	
+	// TODO
+
+	warning("kOnMe: (%d, %d) on object %04x:%04x", argv[0].toUint16(), argv[1].toUint16(), PRINT_REG(argv[2]));
+	return NULL_REG;
+}
+
 } // End of namespace Sci
 
 #endif	// ENABLE_SCI32


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