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:
Max Horn committed 2009-03-26 13:52:43 +00:00
1 parent c21110f36e
commit e5e1615280
4 files changed
+26 -29

No files matched your search

+1 -1
View File
@@ -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