aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2009-03-26 13:52:43 +0000
committerMax Horn2009-03-26 13:52:43 +0000
commite5e16152808bfc44681a5ea217685fb474339064 (patch)
tree8dd91ea357007552e67222c59d66deac572fc13f /base
parentc21110f36ee9618fd94f306eba39fe9208eb887d (diff)
downloadscummvm-rg350-e5e16152808bfc44681a5ea217685fb474339064.tar.gz
scummvm-rg350-e5e16152808bfc44681a5ea217685fb474339064.tar.bz2
scummvm-rg350-e5e16152808bfc44681a5ea217685fb474339064.zip
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
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 998c96dedf..420e51b29b 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -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