Hard crash when not using adlib/pcspk in a Loom/MonkeyEGA is not nice, we should try to add a safe fallback mode at some point

svn-id: r26676
This commit is contained in:
Max Horn 2007-04-29 12:20:35 +00:00
parent 885f687ae5
commit 43779ab10c

View File

@ -712,12 +712,16 @@ void ScummEngine::resetScummVars() {
Common::File f;
for (int i = 82; i < 85; i++) {
sprintf(buf, "%d.LFL", i);
if (!Common::File::exists(buf))
if (!Common::File::exists(buf)) {
// TODO: Instead of a hard error, try to fall back to adlib?
error("Native MIDI support requires Roland patch from LucasArts, but %s is missing", buf);
}
}
} else if (_game.id == GID_MONKEY_EGA) {
if (!Common::File::exists("DISK09.LEC"))
if (!Common::File::exists("DISK09.LEC")) {
// TODO: Instead of a hard error, try to fall back to adlib?
error("Native MIDI support requires Roland patch from LucasArts, but DISK09.LEC is missing");
}
}
VAR(VAR_SOUNDCARD) = 4;
} else {