diff options
author | Johannes Schickel | 2015-05-20 00:21:45 +0200 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:42 -0400 |
commit | 2fa1ce51dd3cb00eef289094fe9f660c237254bc (patch) | |
tree | bf17904ada76c4eb9179fd8ad85b6172a3a95732 | |
parent | 6f01600e12ba14acde8a6557716783861dc014d1 (diff) | |
download | scummvm-rg350-2fa1ce51dd3cb00eef289094fe9f660c237254bc.tar.gz scummvm-rg350-2fa1ce51dd3cb00eef289094fe9f660c237254bc.tar.bz2 scummvm-rg350-2fa1ce51dd3cb00eef289094fe9f660c237254bc.zip |
GUI: Simplify OPL option code a bit.
-rw-r--r-- | gui/options.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 726b89d437..ba247e5f15 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -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); |