[Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.33,2.34 script_v6.cpp,1.48,1.49

Jonathan Gray khalek at users.sourceforge.net
Sat Feb 15 01:40:02 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv23336

Modified Files:
	intern.h script_v6.cpp 
Log Message:
add stubs for openFile closeFile and deleteFile opcodes

Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v
retrieving revision 2.33
retrieving revision 2.34
diff -u -d -r2.33 -r2.34
--- intern.h	14 Feb 2003 08:12:45 -0000	2.33
+++ intern.h	15 Feb 2003 09:39:51 -0000	2.34
@@ -366,6 +366,9 @@
 	void o6_bor();
 	void o6_band();
 	void o6_stopTalking();
+	void o6_openFile();
+	void o6_closeFile();
+	void o6_deleteFile();
 };
 
 class Scumm_v7 : public Scumm_v6

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- script_v6.cpp	14 Feb 2003 08:12:45 -0000	1.48
+++ script_v6.cpp	15 Feb 2003 09:39:52 -0000	1.49
@@ -314,13 +314,13 @@
 		OPCODE(o6_bor),
 		/* D8 */
 		OPCODE(o6_isRoomScriptRunning),
-		OPCODE(o6_invalid),
-		OPCODE(o6_invalid),
+		OPCODE(o6_closeFile),
+		OPCODE(o6_openFile),
 		OPCODE(o6_invalid),
 		/* DC */
 		OPCODE(o6_invalid),
 		OPCODE(o6_invalid),
-		OPCODE(o6_invalid),
+		OPCODE(o6_deleteFile),
 		OPCODE(o6_invalid),
 		/* E0 */
 		OPCODE(o6_invalid),
@@ -2902,6 +2902,28 @@
 
 void Scumm_v6::o6_stopTalking() {
 	warning("o6_stopTalking: stub");
+}
+
+void Scumm_v6::o6_openFile() {
+	int a, b, len;
+	a = pop();
+	len = resStrLen(_scriptPointer);
+	warning("stub o6_openFile(\"%s\", %d)", _scriptPointer, a);
+	_scriptPointer += len + 1;
+	// -1 open failed, otherwise file handle?
+	push(0);
+}
+
+void Scumm_v6::o6_closeFile() {
+	// pop'd variable should be that pushed in o6_openFile()
+	warning("stub o6_closeFile(%d)", pop());
+}
+	
+void Scumm_v6::o6_deleteFile() {
+	int len;
+	len = resStrLen(_scriptPointer);
+	warning("stub o6_deleteFile(\"%s\")", _scriptPointer);
+	_scriptPointer += len + 1;
 }
 
 void Scumm_v6::decodeParseString(int m, int n)





More information about the Scummvm-git-logs mailing list