aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-10-13 12:16:48 +0300
committerFilippos Karapetis2014-10-13 12:21:39 +0300
commitae2be20a20b4a88dee2aec8b47e01f899df38ff4 (patch)
tree6dcfd0196de9f29ba5085831a09f03c2bc8b22c4 /engines
parent43cb57ba00d3d19fe46c16c12a43fcc902bbb1c2 (diff)
downloadscummvm-rg350-ae2be20a20b4a88dee2aec8b47e01f899df38ff4.tar.gz
scummvm-rg350-ae2be20a20b4a88dee2aec8b47e01f899df38ff4.tar.bz2
scummvm-rg350-ae2be20a20b4a88dee2aec8b47e01f899df38ff4.zip
SCI: Fix bug #6725 - "SCI: LSL5 Mac doesn't launch with MT-32 music"
Thanks to waltervn for his help
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/drivers/midi.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index 5065500f52..baf85de74c 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -399,6 +399,11 @@ void MidiPlayer_Midi::playSwitch(bool play) {
}
bool MidiPlayer_Midi::isMt32GmPatch(const byte *data, int size) {
+ // WORKAROUND: Some Mac games (e.g. LSL5) may have an extra byte at the
+ // end, so compensate for that here - bug #6725.
+ if (size == 16890)
+ size--;
+
// Need at least 1153 + 2 bytes for a GM patch. Check readMt32GmPatch()
// below for more info.
if (size < 1153 + 2)