aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRobert Göffringmann2003-08-18 23:19:53 +0000
committerRobert Göffringmann2003-08-18 23:19:53 +0000
commitf6d697444b56bb341bfe98c4bb6b9c3fe929c670 (patch)
tree0c8e372b788352e028c925db842d8945d1494800 /common
parentcc7700f01d98c1f2e56e9f3ad410743dbe2c8f91 (diff)
downloadscummvm-rg350-f6d697444b56bb341bfe98c4bb6b9c3fe929c670.tar.gz
scummvm-rg350-f6d697444b56bb341bfe98c4bb6b9c3fe929c670.tar.bz2
scummvm-rg350-f6d697444b56bb341bfe98c4bb6b9c3fe929c670.zip
added VersionSettings flag MDT_PREFER_NATIVE for defaulting to midi music
svn-id: r9771
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp8
-rw-r--r--common/gameDetector.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index ef71482604..278dbd0590 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -704,8 +704,12 @@ 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 (_midi_driver == MD_AUTO)
- _midi_driver = MD_ADLIB;
+ if (_midi_driver == MD_AUTO) {
+ if (_game.midi & MDT_PREFER_NATIVE)
+ _midi_driver = getMidiDriverType();
+ else
+ _midi_driver = MD_ADLIB;
+ }
bool nativeMidiDriver =
(_midi_driver != MD_NULL && _midi_driver != MD_ADLIB &&
_midi_driver != MD_PCSPK && _midi_driver != MD_PCJR);
diff --git a/common/gameDetector.h b/common/gameDetector.h
index fcf6846dae..1f54990c3e 100644
--- a/common/gameDetector.h
+++ b/common/gameDetector.h
@@ -65,7 +65,8 @@ enum MidiDriverType {
MDT_NONE = 0,
MDT_PCSPK = 1, // MD_PCSPK and MD_PCJR
MDT_ADLIB = 2, // MD_ADLIB
- MDT_NATIVE = 4 // Everything else
+ MDT_NATIVE = 4, // Everything else
+ MDT_PREFER_NATIVE = 8
};
struct VersionSettings {