diff options
author | Travis Howell | 2003-09-10 11:43:19 +0000 |
---|---|---|
committer | Travis Howell | 2003-09-10 11:43:19 +0000 |
commit | 77ae18255bb5ac555087ee3314e8ea9c02a6c436 (patch) | |
tree | 0c060c84f941e673ef6866b3be404773db306954 | |
parent | 0cbbfa14105e67d77d739f1f0dedc31c7e84aaf2 (diff) | |
download | scummvm-rg350-77ae18255bb5ac555087ee3314e8ea9c02a6c436.tar.gz scummvm-rg350-77ae18255bb5ac555087ee3314e8ea9c02a6c436.tar.bz2 scummvm-rg350-77ae18255bb5ac555087ee3314e8ea9c02a6c436.zip |
Check for Roland patch in loom and monkeyega, give better error if patch not found.
svn-id: r10148
-rw-r--r-- | scumm/scummvm.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 76bcf2a607..e5a932b21e 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1129,9 +1129,28 @@ void Scumm::initScummVars() { case MD_PCSPK: case MD_PCJR: VAR(VAR_SOUNDCARD) = 1; break; default: - if (_features & GF_SMALL_HEADER && !(_features & GF_AMIGA)) + if ((_gameId == GID_MONKEY_EGA) || ((_gameId == GID_MONKEY_VGA) && !(_features & GF_AMIGA)) + || (_gameId == GID_LOOM)) { + if (_gameId == GID_LOOM) { + char buf[50]; + uint i = 82; + File f; + while (i < 86) { + sprintf(buf, "%d.LFL", i); + f.open(buf, _gameDataPath); + if (f.isOpen() == false) + error("Native MIDI support requires Roland patch from LucasArts"); + f.close(); + i++; + } + } else if (_gameId == GID_MONKEY_EGA) { + File f; + f.open("DISK09.LEC", _gameDataPath); + if (f.isOpen() == false) + error("Native MIDI support requires Roland patch from LucasArts"); + } VAR(VAR_SOUNDCARD) = 4; - else + } else VAR(VAR_SOUNDCARD) = 3; } VAR(VAR_VIDEOMODE) = 0x13; |