diff options
author | Nicolas Bacca | 2003-06-01 10:15:31 +0000 |
---|---|---|
committer | Nicolas Bacca | 2003-06-01 10:15:31 +0000 |
commit | 79a98164c0ca342e416d0e52150b13a59ad3c38b (patch) | |
tree | beeea2bc252d7f869e2f7988f949a33bd54747d2 /scumm/script.cpp | |
parent | 8a531f3ca564b651ce472460bc0e5954da0e6d96 (diff) | |
download | scummvm-rg350-79a98164c0ca342e416d0e52150b13a59ad3c38b.tar.gz scummvm-rg350-79a98164c0ca342e416d0e52150b13a59ad3c38b.tar.bz2 scummvm-rg350-79a98164c0ca342e416d0e52150b13a59ad3c38b.zip |
Bypass Sam & Max floppy copy protection
svn-id: r8230
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 478a4f96cb..f7602ab12b 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -510,6 +510,14 @@ int Scumm::readVar(uint var) { } 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]; } |