[Scummvm-cvs-logs] CVS: residual lua.cpp,1.91,1.92

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Jan 2 12:27:07 CET 2005


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24106

Modified Files:
	lua.cpp 
Log Message:
added two lua opcodes

Index: lua.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua.cpp,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- lua.cpp	2 Jan 2005 13:34:50 -0000	1.91
+++ lua.cpp	2 Jan 2005 20:26:51 -0000	1.92
@@ -1372,6 +1372,23 @@
 	warning("STUB: BlastText(\"%s\", x = %d, y = %d)\n", msg.c_str(), x, y);
 }
 
+static void LockFont() {
+	lua_Object param1 = lua_getparam(1);
+	if (lua_isstring(param1)) {
+		char *fontName = lua_getstring(param1);
+		void *result = NULL;//g_resourceloader->loadFont(fontName);
+		if (result) {
+			lua_pushusertag(result, MKID('FONT'));
+			return;
+		}
+	}
+	lua_pushnil();
+}
+
+static void EnableDebugKeys() {
+	// in residual all keys are handled/enabled
+}
+
 // Stub function for builtin functions not yet implemented
 
 static void stubWarning(char *funcName) {
@@ -1485,8 +1502,6 @@
 STUB_FUNC(NextSetup)
 STUB_FUNC(UnLockSet)
 STUB_FUNC(LockSet)
-STUB_FUNC(LockFont)
-STUB_FUNC(EnableDebugKeys)
 STUB_FUNC(WorldToScreen)
 STUB_FUNC(CompleteActorChore)
 STUB_FUNC(SetActorRoll)





More information about the Scummvm-git-logs mailing list