Patch #1956501: "GUI/LAUNCHER: Midi device selection"

svn-id: r50128
This commit is contained in:
Max Horn 2010-06-21 21:36:36 +00:00
parent 49448af6cb
commit bbad3f333a
62 changed files with 696 additions and 689 deletions

View file

@ -364,7 +364,7 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
END_OPTION
DO_OPTION('e', "music-driver")
if (MidiDriver::findMusicDriver(option) == 0)
if (MidiDriver::getMusicType(MidiDriver::getDeviceHandle(option)) == MT_NULL)
usage("Unrecognized music driver '%s'", option);
END_OPTION