[Scummvm-cvs-logs] CVS: residual lua.cpp,1.67,1.68

Jonathan Gray khalek at users.sourceforge.net
Fri Jun 4 13:58:02 CEST 2004


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

Modified Files:
	lua.cpp 
Log Message:
add stub for GetDiskFreeSpace which is used to check for free space when creating save games

Index: lua.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- lua.cpp	4 Jun 2004 19:08:16 -0000	1.67
+++ lua.cpp	4 Jun 2004 20:57:17 -0000	1.68
@@ -1169,6 +1169,11 @@
 	lua_pushnumber(0);
 }
 
+static void GetDiskFreeSpace() {
+	// amount of free space in MB, used for creating saves
+	lua_pushnumber(50);
+}
+
 // Objectstate functions
 static void NewObjectState() {
 	enum ObjectPosition {
@@ -1417,7 +1422,7 @@
 	"DrawLine",
 	"pause_scripts",
 	"unpause_scripts",
-	"print_stack",
+	"print_stack"
 };
 
 // Entries in the system table
@@ -1681,6 +1686,7 @@
 	{ "GetSpeechMode", GetSpeechMode },
 	{ "SetSpeechMode", SetSpeechMode },
 	{ "GetTextCharPosition", GetTextCharPosition },
+	{ "GetDiskFreeSpace", GetDiskFreeSpace },
 	{ "Is3DHardwareEnabled", Is3DHardwareEnabled }
 };
 





More information about the Scummvm-git-logs mailing list