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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Jan 15 16:30:41 CET 2010


Revision: 47307
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47307&view=rev
Author:   thebluegr
Date:     2010-01-15 15:30:40 +0000 (Fri, 15 Jan 2010)

Log Message:
-----------
Updated kernel function check for kGetEvent in Mac versions and adjusted the comments for kGetSaveDir

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

Modified: scummvm/trunk/engines/sci/engine/kernel.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel.cpp	2010-01-15 13:33:26 UTC (rev 47306)
+++ scummvm/trunk/engines/sci/engine/kernel.cpp	2010-01-15 15:30:40 UTC (rev 47307)
@@ -214,9 +214,7 @@
 	/*19*/	DEFUN("EditControl", kEditControl, "ZoZo"),
 	/*1a*/	DEFUN("TextSize", kTextSize, "rZrii*r*"),
 	/*1b*/	DEFUN("Display", kDisplay, ".*"),
-	// FIXME: signature check removed (set to .*) as kGetEvent is different in Mac versions
-	/*1c*/	DEFUN("GetEvent", kGetEvent, ".*"),
-	///*1c*/	DEFUN("GetEvent", kGetEvent, "io"),
+	/*1c*/	DEFUN("GetEvent", kGetEvent, "ioi*"),	// Mac versions pass an extra 3rd parameter (ignored - always 0?)
 	/*1d*/	DEFUN("GlobalToLocal", kGlobalToLocal, "oo*"),
 	/*1e*/	DEFUN("LocalToGlobal", kLocalToGlobal, "oo*"),
 	/*1f*/	DEFUN("MapKeyToDir", kMapKeyToDir, "o"),
@@ -291,9 +289,7 @@
 	/*65*/	DEFUN("CoordPri", kCoordPri, "ii*"),
 	/*66*/	DEFUN("StrAt", kStrAt, "rii*"),
 	/*67*/	DEFUN("DeviceInfo", kDeviceInfo, "i.*"),
-	// FIXME: signature check removed (set to .*), as this function accepts a parameter in SCI32 games
-	/*68*/	DEFUN("GetSaveDir", kGetSaveDir, ".*"),
-	///*68*/	DEFUN("GetSaveDir", kGetSaveDir, ""),
+	/*68*/	DEFUN("GetSaveDir", kGetSaveDir, ".*"),	// accepts a parameter in SCI2+ games
 	/*69*/	DEFUN("CheckSaveGame", kCheckSaveGame, ".*"),
 	/*6a*/	DEFUN("ShakeScreen", kShakeScreen, "ii*"),
 	/*6b*/	DEFUN("FlushResources", kFlushResources, "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