mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MidiDriver cleanup: findMusicDriver now returns a pointer (makes it possible to distinguish 'no match found' from other results); updated parseMusicDriver accordingly; some methods now return MidiDriverType instead of int
svn-id: r39702
This commit is contained in:
@@ -346,7 +346,7 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
||||
END_OPTION
|
||||
|
||||
DO_OPTION('e', "music-driver")
|
||||
if (MidiDriver::parseMusicDriver(option) < 0)
|
||||
if (MidiDriver::findMusicDriver(option) == 0)
|
||||
usage("Unrecognized music driver '%s'", option);
|
||||
END_OPTION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user