aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/features.cpp
diff options
context:
space:
mode:
authorColin Snover2017-07-07 11:30:07 -0500
committerColin Snover2017-07-07 13:28:54 -0500
commit07d6ffd989ce89e52c6381d8c9a2c53ffaa7e05e (patch)
treef6c1673105ceb475d099e972e9ae465425e40f1d /engines/sci/engine/features.cpp
parent90cd56e4b6f008c9dbb3f9d1b34bca4a786c40ac (diff)
downloadscummvm-rg350-07d6ffd989ce89e52c6381d8c9a2c53ffaa7e05e.tar.gz
scummvm-rg350-07d6ffd989ce89e52c6381d8c9a2c53ffaa7e05e.tar.bz2
scummvm-rg350-07d6ffd989ce89e52c6381d8c9a2c53ffaa7e05e.zip
SCI32: Force General MIDI for games that support nothing else
* MGDX has only GM music; * KQ7 1.x's AdLib data is incomplete, so is not usable even though it is partially there Fixes Trac#9789.
Diffstat (limited to 'engines/sci/engine/features.cpp')
-rw-r--r--engines/sci/engine/features.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp
index 76f3c358d4..bddcac920a 100644
--- a/engines/sci/engine/features.cpp
+++ b/engines/sci/engine/features.cpp
@@ -694,6 +694,23 @@ bool GameFeatures::useAltWinGMSound() {
}
}
+bool GameFeatures::generalMidiOnly() {
+#ifdef ENABLE_SCI32
+ switch (g_sci->getGameId()) {
+ case GID_MOTHERGOOSEHIRES:
+ return true;
+ case GID_KQ7: {
+ SoundResource sound(13, g_sci->getResMan(), detectDoSoundType());
+ return (sound.getTrackByType(/* AdLib */ 0) == nullptr);
+ }
+ default:
+ break;
+ }
+#endif
+
+ return false;
+}
+
// PseudoMouse was added during SCI1
// PseudoMouseAbility is about a tiny difference in the keyboard driver, which sets the event type to either
// 40h (old behaviour) or 44h (the keyboard driver actually added 40h to the existing value).