[Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.288,2.289 script_v72he.cpp,2.149,2.150 script_v80he.cpp,2.46,2.47 script_v90he.cpp,2.75,2.76

Travis Howell kirben at users.sourceforge.net
Sun Oct 3 17:12:04 CEST 2004


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

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

Add opcode difference


Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v
retrieving revision 2.288
retrieving revision 2.289
diff -u -d -r2.288 -r2.289
--- intern.h	3 Oct 2004 23:37:34 -0000	2.288
+++ intern.h	4 Oct 2004 00:01:06 -0000	2.289
@@ -753,6 +753,7 @@
 	void o72_traceStatus();
 	void o72_unknownCF();
 	void o72_drawWizImage();
+	void o72_kernelGetFunctions();
 	void o72_jumpToScript();
 	void o72_openFile();
 	void o72_readFile();

Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.149
retrieving revision 2.150
diff -u -d -r2.149 -r2.150
--- script_v72he.cpp	3 Oct 2004 14:24:28 -0000	2.149
+++ script_v72he.cpp	4 Oct 2004 00:01:06 -0000	2.150
@@ -295,7 +295,7 @@
 		OPCODE(o6_distObjectPt),
 		OPCODE(o6_distPtPt),
 		/* C8 */
-		OPCODE(o60_kernelGetFunctions),
+		OPCODE(o72_kernelGetFunctions),
 		OPCODE(o70_kernelSetFunctions),
 		OPCODE(o6_delayFrames),
 		OPCODE(o6_pickOneOf),
@@ -1856,6 +1856,38 @@
 	_wizImagesNum = 0;
 }
 
+void ScummEngine_v72he::o72_kernelGetFunctions() {
+	int args[29];
+	int retval;
+	ArrayHeader *ah;
+	getStackList(args, ARRAYSIZE(args));
+
+	switch (args[0]) {
+	case 1:
+		writeVar(0, 0);
+		defineArray(0, kByteArray, 0, 0, 0, virtScreenSave(0, args[1], args[2], args[3], args[4]));
+		retval = readVar(0);
+		ah = (ArrayHeader *)getResourceAddress(rtString, retval);
+		virtScreenSave(ah->data, args[1], args[2], args[3], args[4]);
+		push(retval);
+		break;
+	case 1001:
+		{
+		double a = args[1] * M_PI / 180.;
+		push((int)(sin(a) * 100000));
+		}
+		break;
+	case 1002:
+		{
+		double a = args[1] * M_PI / 180.;
+		push((int)(cos(a) * 100000));
+		}
+		break;
+	default:
+		error("o72_kernelGetFunctions: default case %d", args[0]);
+	}
+}
+
 void ScummEngine_v72he::o72_drawWizImage() {
 	WizImage wi;
 	wi.flags = pop();

Index: script_v80he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v80he.cpp,v
retrieving revision 2.46
retrieving revision 2.47
diff -u -d -r2.46 -r2.47
--- script_v80he.cpp	3 Oct 2004 23:37:34 -0000	2.46
+++ script_v80he.cpp	4 Oct 2004 00:01:06 -0000	2.47
@@ -294,7 +294,7 @@
 		OPCODE(o6_distObjectPt),
 		OPCODE(o6_distPtPt),
 		/* C8 */
-		OPCODE(o60_kernelGetFunctions),
+		OPCODE(o72_kernelGetFunctions),
 		OPCODE(o70_kernelSetFunctions),
 		OPCODE(o6_delayFrames),
 		OPCODE(o6_pickOneOf),

Index: script_v90he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v90he.cpp,v
retrieving revision 2.75
retrieving revision 2.76
diff -u -d -r2.75 -r2.76
--- script_v90he.cpp	3 Oct 2004 23:37:34 -0000	2.75
+++ script_v90he.cpp	4 Oct 2004 00:01:06 -0000	2.76
@@ -294,7 +294,7 @@
 		OPCODE(o6_distObjectPt),
 		OPCODE(o6_distPtPt),
 		/* C8 */
-		OPCODE(o60_kernelGetFunctions),
+		OPCODE(o72_kernelGetFunctions),
 		OPCODE(o70_kernelSetFunctions),
 		OPCODE(o6_delayFrames),
 		OPCODE(o6_pickOneOf),





More information about the Scummvm-git-logs mailing list