[Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.399,2.400 script_v100he.cpp,2.94,2.95 script_v72he.cpp,2.220,2.221 script_v80he.cpp,2.79,2.80 script_v90he.cpp,2.189,2.190

kirben kirben at users.sourceforge.net
Thu Mar 17 03:12:04 CET 2005


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

Modified Files:
	intern.h script_v100he.cpp script_v72he.cpp script_v80he.cpp 
	script_v90he.cpp 
Log Message:

Add HE72 version of file rename opcode


Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v
retrieving revision 2.399
retrieving revision 2.400
diff -u -d -r2.399 -r2.400
--- intern.h	17 Mar 2005 10:53:28 -0000	2.399
+++ intern.h	17 Mar 2005 11:06:42 -0000	2.400
@@ -793,6 +793,7 @@
 	void o72_writeFile();
 	void o72_findAllObjects();
 	void o72_deleteFile();
+	void o72_rename();
 	void o72_getPixel();
 	void o72_pickVarRandom();
 	void o72_redimArray();

Index: script_v100he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v100he.cpp,v
retrieving revision 2.94
retrieving revision 2.95
diff -u -d -r2.94 -r2.95
--- script_v100he.cpp	17 Mar 2005 10:53:28 -0000	2.94
+++ script_v100he.cpp	17 Mar 2005 11:06:43 -0000	2.95
@@ -167,7 +167,7 @@
 		OPCODE(o6_invalid),
 		/* 64 */
 		OPCODE(o100_redimArray),
-		OPCODE(o60_rename),
+		OPCODE(o72_rename),
 		OPCODE(o6_stopObjectCode),
 		OPCODE(o80_localizeArrayToRoom),
 		/* 68 */

Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.220
retrieving revision 2.221
diff -u -d -r2.220 -r2.221
--- script_v72he.cpp	17 Mar 2005 10:53:29 -0000	2.220
+++ script_v72he.cpp	17 Mar 2005 11:06:43 -0000	2.221
@@ -322,7 +322,7 @@
 		OPCODE(o72_writeFile),
 		OPCODE(o72_findAllObjects),
 		OPCODE(o72_deleteFile),
-		OPCODE(o60_rename),
+		OPCODE(o72_rename),
 		/* E0 */
 		OPCODE(o60_soundOps),
 		OPCODE(o72_getPixel),
@@ -1472,7 +1472,7 @@
 
 void ScummEngine_v72he::o72_talkEgo() {
 	push(VAR(VAR_EGO));
-	o6_talkActor();
+	o72_talkActor();
 }
 
 void ScummEngine_v72he::o72_dimArray() {
@@ -1807,15 +1807,18 @@
 
 void ScummEngine_v72he::o72_deleteFile() {
 	byte filename[100];
-	int r;
 
 	copyScriptString(filename);
-	for (r = strlen((char*)filename); r != 0; r--) {
-		if (filename[r - 1] == '\\')
-			break;
-	}
+	debug(1, "stub o72_deleteFile(%s)", filename);
+}
 
-	debug(1, "stub o72_deleteFile(%s)", filename + r);
+void ScummEngine_v72he::o72_rename() {
+	byte oldFilename[256],newFilename[256];
+
+	copyScriptString(newFilename);
+	copyScriptString(oldFilename);
+
+	debug(1, "stub o72_rename(%s to %s)", oldFilename, newFilename);
 }
 
 void ScummEngine_v72he::o72_getPixel() {

Index: script_v80he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v80he.cpp,v
retrieving revision 2.79
retrieving revision 2.80
diff -u -d -r2.79 -r2.80
--- script_v80he.cpp	17 Mar 2005 10:53:29 -0000	2.79
+++ script_v80he.cpp	17 Mar 2005 11:06:43 -0000	2.80
@@ -319,7 +319,7 @@
 		OPCODE(o72_writeFile),
 		OPCODE(o72_findAllObjects),
 		OPCODE(o72_deleteFile),
-		OPCODE(o60_rename),
+		OPCODE(o72_rename),
 		/* E0 */
 		OPCODE(o80_unknownE0),
 		OPCODE(o72_getPixel),

Index: script_v90he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v90he.cpp,v
retrieving revision 2.189
retrieving revision 2.190
diff -u -d -r2.189 -r2.190
--- script_v90he.cpp	17 Mar 2005 10:53:29 -0000	2.189
+++ script_v90he.cpp	17 Mar 2005 11:06:43 -0000	2.190
@@ -319,7 +319,7 @@
 		OPCODE(o72_writeFile),
 		OPCODE(o72_findAllObjects),
 		OPCODE(o72_deleteFile),
-		OPCODE(o60_rename),
+		OPCODE(o72_rename),
 		/* E0 */
 		OPCODE(o80_unknownE0),
 		OPCODE(o72_getPixel),





More information about the Scummvm-git-logs mailing list