[Scummvm-cvs-logs] CVS: scummvm/scumm script_v2.cpp,2.207,2.208

Travis Howell kirben at users.sourceforge.net
Tue Oct 28 22:37:02 CET 2003


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

Modified Files:
	script_v2.cpp 
Log Message:

Add copy protection bypass for Zak McKracken (EGA) since there was no check in the version included with SelectWare Classic Collection.


Index: script_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v2.cpp,v
retrieving revision 2.207
retrieving revision 2.208
diff -u -d -r2.207 -r2.208
--- script_v2.cpp	20 Oct 2003 12:14:39 -0000	2.207
+++ script_v2.cpp	29 Oct 2003 06:36:06 -0000	2.208
@@ -428,12 +428,25 @@
 	actorTalk();
 }
 
+#ifndef BYPASS_COPY_PROT
+#define BYPASS_COPY_PROT
+#endif
+
 int ScummEngine_v2::readVar(uint var) {
 	if (var >= 14 && var <= 16)
 		var = _scummVars[var];
 
 	checkRange(_numVariables - 1, 0, var, "Variable %d out of range(r)");
 	debug(6, "readvar(%d) = %d", var, _scummVars[var]);
+
+#if defined(BYPASS_COPY_PROT)
+	// The Enchanced version of Zak McKracken included in the
+	// SelectWare Classic Collection bundle has no copy protection 
+	// and doesn't include the codes.
+	if (_gameId == GID_ZAK && var == 244)
+		return 0;
+#endif
+
 	return _scummVars[var];
 }
 





More information about the Scummvm-git-logs mailing list