aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-09-10 11:43:19 +0000
committerTravis Howell2003-09-10 11:43:19 +0000
commit77ae18255bb5ac555087ee3314e8ea9c02a6c436 (patch)
tree0c060c84f941e673ef6866b3be404773db306954
parent0cbbfa14105e67d77d739f1f0dedc31c7e84aaf2 (diff)
downloadscummvm-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.cpp23
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;