SCUMM: Use the MI2 Mac specific boot param to bypass the copy protection

ScummVM already disables the copy protection by not checking that you
enter the correct values, so we may as well skip it completely.
This commit is contained in:
Torbjörn Andersson 2021-07-12 14:32:16 +02:00 committed by Eugene Sandulenko
parent 8522ef0f4f
commit d2758e913a

View file

@ -1577,6 +1577,14 @@ void ScummEngine::setupScumm(const Common::String &macResourceFile) {
_bootParam = -7873;
}
// This boot param does not exist in the DOS version, but skips straight
// to the difficulty selection screen in the Mac versions. (One of them
// didn't show the difficulty selection screen at all, but we patch the
// boot script to enable that.)
if (!_copyProtection && _game.id == GID_MONKEY2 && _game.platform == Common::kPlatformMacintosh && _bootParam == 0) {
_bootParam = -7873;
}
if (!_copyProtection && _game.id == GID_SAMNMAX && _bootParam == 0) {
_bootParam = -1;
}