added VersionSettings flag MDT_PREFER_NATIVE for defaulting to midi music

svn-id: r9771
This commit is contained in:
Robert Göffringmann 2003-08-18 23:19:53 +00:00
parent cc7700f01d
commit f6d697444b
2 changed files with 8 additions and 3 deletions

View File

@ -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);

View File

@ -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 {