diff options
author | Max Horn | 2007-04-29 12:20:35 +0000 |
---|---|---|
committer | Max Horn | 2007-04-29 12:20:35 +0000 |
commit | 43779ab10cc1eda75ea5beefaff9867e7ad34d67 (patch) | |
tree | ea085685b9a54052e8d39e3a1226acd137ecf171 /engines | |
parent | 885f687ae597d709441928a6bb484ee703691aca (diff) | |
download | scummvm-rg350-43779ab10cc1eda75ea5beefaff9867e7ad34d67.tar.gz scummvm-rg350-43779ab10cc1eda75ea5beefaff9867e7ad34d67.tar.bz2 scummvm-rg350-43779ab10cc1eda75ea5beefaff9867e7ad34d67.zip |
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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/vars.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/scumm/vars.cpp b/engines/scumm/vars.cpp index 7bd12fd9c9..7010cfffdf 100644 --- a/engines/scumm/vars.cpp +++ b/engines/scumm/vars.cpp @@ -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 { |