diff options
author | Torbjörn Andersson | 2010-11-28 17:26:27 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-11-28 17:26:27 +0000 |
commit | 1857076d76d8bde59bf6b47fe49c32ba6c462c10 (patch) | |
tree | 7920ff256173a2c35016083369638763be377cca /base/commandLine.cpp | |
parent | bed8c34a87512282e582dc7ee5471e9f5a94d6c7 (diff) | |
download | scummvm-rg350-1857076d76d8bde59bf6b47fe49c32ba6c462c10.tar.gz scummvm-rg350-1857076d76d8bde59bf6b47fe49c32ba6c462c10.tar.bz2 scummvm-rg350-1857076d76d8bde59bf6b47fe49c32ba6c462c10.zip |
MAIN: Fix --gfx-mode regression
We cannot check for supported graphics mode until after the backend has
been initialised, or there won't be a graphics manager to ask.
svn-id: r54534
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r-- | base/commandLine.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index b1610feb2e..36218376c8 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -383,19 +383,6 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha END_OPTION DO_OPTION('g', "gfx-mode") - // Check whether 'option' specifies a valid graphics mode. - bool isValid = false; - if (!scumm_stricmp(option, "normal") || !scumm_stricmp(option, "default")) - isValid = true; - if (!isValid) { - const OSystem::GraphicsMode *gm = g_system->getSupportedGraphicsModes(); - while (gm->name && !isValid) { - isValid = !scumm_stricmp(gm->name, option); - gm++; - } - } - if (!isValid) - usage("Unrecognized graphics mode '%s'", option); END_OPTION DO_OPTION_INT('m', "music-volume") |