[Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.155,2.156 script_v6he.cpp,2.44,2.45

Eugene Sandulenko sev at users.sourceforge.net
Mon May 31 01:45:00 CEST 2004


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

Modified Files:
	intern.h script_v6he.cpp 
Log Message:
Add stub for HE o6_quitPauseRestart.


Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v
retrieving revision 2.155
retrieving revision 2.156
diff -u -d -r2.155 -r2.156
--- intern.h	17 Mar 2004 01:50:14 -0000	2.155
+++ intern.h	31 May 2004 08:44:04 -0000	2.156
@@ -596,6 +596,7 @@
 	void o6_unknownF9();
 	void o6_unknownFB();
 	void o6_readFilePos();
+	void o6_quitPauseRestart();
 };
 
 class ScummEngine_v7he : public ScummEngine_v6he {

Index: script_v6he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6he.cpp,v
retrieving revision 2.44
retrieving revision 2.45
diff -u -d -r2.44 -r2.45
--- script_v6he.cpp	5 Apr 2004 23:54:58 -0000	2.44
+++ script_v6he.cpp	31 May 2004 08:44:04 -0000	2.45
@@ -1475,4 +1475,37 @@
 	}
 }
 
+void ScummEngine_v6he::o6_quitPauseRestart() {
+	byte subOp = fetchScriptByte();
+	int par1;
+
+	if (_heversion == 60)
+		if (subOp != 158 && subOp != 160)
+			error("o6_quitPauseRestart invalid case %d", subOp);
+
+
+	switch (subOp & 0xff) {
+	case 158:		// SO_RESTART
+		restart();
+		break;
+	case 160:		// SO_QUIT
+		shutDown();
+		break;
+	case 250:
+		par1 = pop();
+		warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
+		break;
+	case 253:
+		par1 = pop();
+		warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
+	case 244:
+	case 251:
+	case 252:
+		warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
+		break;
+	default:
+		error("o6_quitPauseRestart invalid case %d", subOp);
+	}
+}
+
 } // End of namespace Scumm





More information about the Scummvm-git-logs mailing list