[Scummvm-cvs-logs] CVS: scummvm/scumm script.cpp,1.160,1.161 script_v5.cpp,1.243,1.244
Travis Howell
kirben at users.sourceforge.net
Sat Jul 24 00:14:00 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11323/scumm
Modified Files:
script.cpp script_v5.cpp
Log Message:
A few HE games are supported now.
Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- script.cpp 11 Jul 2004 11:59:18 -0000 1.160
+++ script.cpp 24 Jul 2004 07:13:17 -0000 1.161
@@ -460,7 +460,8 @@
else
copyprotbypassed = true;
- debugC(DEBUG_VARS, "readvar(%d)", var);
+ if (var == VAR_TIMER)
+ debug(1, "readvar(%d)", var);
if (var & 0x2000 && !(_features & GF_NEW_OPCODES)) {
a = fetchScriptWord();
@@ -503,16 +504,10 @@
if (!_copyProtection) {
// INDY3, EGA Loom and, apparently, Zak256 check this
// during the game...
- if (_gameId == GID_INDY3 && (_features & GF_OLD_BUNDLE) && var == 94 && bit == 4) {
- return 0;
- } else if (var == 221 && bit == 14 && _gameId == GID_LOOM && (_features & GF_MACINTOSH)) { // For Mac Loom
- return 0;
- // For all other Loom versions? PC and FM Towns at least in any event
- } else if (var == 214 && bit == 15 && _gameId == GID_LOOM) {
+ if (_gameId == GID_INDY3 && (_features & GF_OLD_BUNDLE) && var == 94 && bit == 4)
return 0;
- } else if (_gameId == GID_ZAK256 && var == 151 && bit == 8) {
+ else if (_gameId == GID_ZAK256 && var == 151 && bit == 8)
return 0;
- }
}
checkRange(_numVariables - 1, 0, var, "Variable %d out of range(rzb)");
@@ -545,7 +540,8 @@
}
void ScummEngine::writeVar(uint var, int value) {
- debugC(DEBUG_VARS, "writeVar(%d, %d)", var, value);
+ if (var == VAR_TIMER)
+ debug(1, "writeVar(%d, %d)", var, value);
if (!(var & 0xF000)) {
checkRange(_numVariables - 1, 0, var, "Variable %d out of range(w)");
Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.243
retrieving revision 1.244
diff -u -d -r1.243 -r1.244
--- script_v5.cpp 23 Jul 2004 09:30:53 -0000 1.243
+++ script_v5.cpp 24 Jul 2004 07:13:26 -0000 1.244
@@ -2200,11 +2200,13 @@
getWordVararg(data);
- // Method used by original games to skip copy protection scheme
- //if (_gameId == GID_LOOM && _currentRoom == 69 && script == 201)
- // script = 205;
- //else if ((_gameId == GID_MONKEY_VGA || _gameId == GID_MONKEY_EGA) && script == 152)
- // return;
+ if (!_copyProtection) {
+ // Method used by original games to skip copy protection scheme
+ if (_gameId == GID_LOOM && _currentRoom == 69 && script == 201)
+ script = 205;
+ else if ((_gameId == GID_MONKEY_VGA || _gameId == GID_MONKEY_EGA) && script == 152)
+ return;
+ }
runScript(script, (op & 0x20) != 0, (op & 0x40) != 0, data);
}
More information about the Scummvm-git-logs
mailing list