mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
added VersionSettings flag MDT_PREFER_NATIVE for defaulting to midi music
svn-id: r9771
This commit is contained in:
parent
cc7700f01d
commit
f6d697444b
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user