mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
GUI: Simplify OPL option code a bit.
This commit is contained in:
parent
6f01600e12
commit
2fa1ce51dd
@ -445,11 +445,9 @@ void OptionsDialog::close() {
|
||||
|
||||
if (_oplPopUp) {
|
||||
if (_enableAudioSettings) {
|
||||
const OPL::Config::EmulatorDescription *ed = OPL::Config::getAvailable();
|
||||
while (ed->name && ed->id != (int)_oplPopUp->getSelectedTag())
|
||||
++ed;
|
||||
const OPL::Config::EmulatorDescription *ed = OPL::Config::findDriver(_oplPopUp->getSelectedTag());
|
||||
|
||||
if (ed->name)
|
||||
if (ed)
|
||||
ConfMan.set("opl_driver", ed->name, _domain);
|
||||
else
|
||||
ConfMan.removeKey("opl_driver", _domain);
|
||||
|
Loading…
Reference in New Issue
Block a user