aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJamieson Christian2003-08-13 15:34:00 +0000
committerJamieson Christian2003-08-13 15:34:00 +0000
commitbfde325d35089c329334fb6e6e8263dbdd42136b (patch)
treebe1a356ee55a639bfd962fa4eb0ef50d6ad2e50d /common
parenta02fe9e46e6b87a879e5800bc0b4992be2b63fbf (diff)
downloadscummvm-rg350-bfde325d35089c329334fb6e6e8263dbdd42136b.tar.gz
scummvm-rg350-bfde325d35089c329334fb6e6e8263dbdd42136b.tar.bz2
scummvm-rg350-bfde325d35089c329334fb6e6e8263dbdd42136b.zip
Fix ALWAYS_ADLIB override of native driver selection
svn-id: r9658
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 7f211a0487..9a4fa6fc32 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -704,7 +704,10 @@ int GameDetector::detectMain() {
* and the game is one of those that want adlib as
* default, OR if the game is an older game that doesn't
* support anything else anyway. */
- if ((_game.adlib & VersionSettings::ADLIB_ALWAYS) && _midi_driver != MD_NULL ||
+ bool nativeMidiDriver =
+ (_midi_driver != MD_NULL && _midi_driver != MD_ADLIB &&
+ _midi_driver != MD_PCSPK && _midi_driver != MD_PCJR);
+ if ((_game.adlib & VersionSettings::ADLIB_ALWAYS) && nativeMidiDriver ||
(_game.adlib & VersionSettings::ADLIB_PREFERRED) && _midi_driver == MD_AUTO) {
_midi_driver = MD_ADLIB;
}