diff options
author | Filippos Karapetis | 2010-09-02 21:50:00 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-02 21:50:00 +0000 |
commit | d87fa1c8903ba21a2ce5d5946947a50af841700a (patch) | |
tree | 072dac53a41b62c101e687170e25183f3da6d539 /engines/sci/sci.cpp | |
parent | 3606e51e76a82d8f73c9ea4f4c6996896b9f5594 (diff) | |
download | scummvm-rg350-d87fa1c8903ba21a2ce5d5946947a50af841700a.tar.gz scummvm-rg350-d87fa1c8903ba21a2ce5d5946947a50af841700a.tar.bz2 scummvm-rg350-d87fa1c8903ba21a2ce5d5946947a50af841700a.zip |
SCI: Show a warning window regarding GM in some games.
Sierra has released a patch adding after market General MIDI support for 8 SCI1
games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If
the user has selected the General MIDI music driver in one of these games and
no associated MIDI patch is found, show an informational dialog on game startup
in order to inform the user to download Sierra's MIDI patch, together with some
short instructions.
svn-id: r52500
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 4b5888a245..8fc0f667d3 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -310,6 +310,39 @@ Common::Error SciEngine::run() { } } + // Show a warning if the user has selected a General MIDI device, no GM patch exists + // (i.e. patch 4) and the game is one of the known 8 SCI1 games that Sierra has provided + // after market patches for in their "General MIDI Utility". + if (_soundCmd->getMusicType() == MT_GM) { + if (!_resMan->findResource(ResourceId(kResourceTypePatch, 4), 0)) { + switch (getGameId()) { + case GID_ECOQUEST: + case GID_HOYLE3: + case GID_LSL1: + case GID_LSL5: + case GID_LONGBOW: + case GID_SQ1: + case GID_SQ4: + case GID_FAIRYTALES: + showScummVMDialog("You have selected General MIDI as a sound device. Sierra " + "has provided after-market support for General MIDI for this " + "game in their \"General MIDI Utility\". Please, apply this " + "patch in order to enjoy MIDI music with this game. Once you " + "have obtained it, you can unpack all of the included *.PAT " + "files in your ScummVM extras folder and ScummVM will add the " + "appropriate patch automatically. Alternatively, you can follow " + "the instructions in the READ.ME file included in the patch and " + "rename the associated *.PAT file to 4.PAT and place it in the " + "game folder. Without this patch, General MIDI music for this " + "game will sound badly distorted."); + break; + default: + break; + } + } + } + + runGame(); ConfMan.flushToDisk(); |