[Scummvm-cvs-logs] CVS: scummvm/scumm script.cpp,1.106,1.107

Nicolas Bacca arisme at users.sourceforge.net
Sun Jun 1 03:16:06 CEST 2003


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

Modified Files:
	script.cpp 
Log Message:
Bypass Sam & Max floppy copy protection

Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- script.cpp	31 May 2003 11:57:17 -0000	1.106
+++ script.cpp	1 Jun 2003 10:15:31 -0000	1.107
@@ -510,6 +510,14 @@
 		} else {
 			var &= 0xFFF;
 		}
+
+#if defined(BYPASS_COPY_PROT)
+		if (_gameId == GID_SAMNMAX && var == 8 && currentRoom == 71 && !copyprotbypassed) {
+			copyprotbypassed = true;
+			return vm.localvar[_currentScript][7] + 1;
+		}
+#endif
+
 		checkRange(20, 0, var, "Local variable %d out of range(r)");
 		return vm.localvar[_currentScript][var];
 	}





More information about the Scummvm-git-logs mailing list