Prevent the MT-32 Emulator from being displayed in the "GM Device" pop up.

svn-id: r50649
This commit is contained in:
Johannes Schickel 2010-07-04 18:03:18 +00:00
parent da1a8535b4
commit 9880017c11

View File

@ -678,9 +678,10 @@ void OptionsDialog::addAudioControls(GuiObject *boss, const Common::String &pref
|| d->getMusicDriverId() == "auto" || d->getMusicDriverId() == "null") // always add default and null device
_midiPopUp->appendEntry(d->getCompleteName(), musicId++);
if (d->getMusicType() >= MT_GM || m == p.begin()) {
if (d->getMusicType() >= MT_GM || d->getMusicDriverId() == "auto") {
_mt32DevicePopUp->appendEntry(d->getCompleteName(), midiId);
_gmDevicePopUp->appendEntry(d->getCompleteName(), midiId++);
if (d->getMusicType() != MT_MT32)
_gmDevicePopUp->appendEntry(d->getCompleteName(), midiId++);
}
}
}