diff options
author | Jamieson Christian | 2003-08-11 09:48:26 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-08-11 09:48:26 +0000 |
commit | 37a394a660941736ca57fc4aeaef190172833854 (patch) | |
tree | 6a7eaf59aebe272b49e3719a9e7d4c0db2865a1b /common | |
parent | e96658506184888213587df03e4e25d1b876cb77 (diff) | |
download | scummvm-rg350-37a394a660941736ca57fc4aeaef190172833854.tar.gz scummvm-rg350-37a394a660941736ca57fc4aeaef190172833854.tar.bz2 scummvm-rg350-37a394a660941736ca57fc4aeaef190172833854.zip |
Fix for Bug [779013] ALL: Fullscreen and -F
Fixed behavior of command line options that
are treated as "[scummvm]" modifiers by
default. I'm not even sure if "[scummvm]"
mods still work (or require special code)
so we might be able to get rid of old code.
Also added --fullscreen and --no-fullscreen
command line options.
svn-id: r9640
Diffstat (limited to 'common')
-rw-r--r-- | common/gameDetector.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index e1a796933e..b2c371ab5d 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -399,6 +399,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) { case 'f': CHECK_OPTION(); _fullScreen = (c == 'f'); + g_config->setBool("fullscreen", _fullScreen); g_config->setBool("fullscreen", _fullScreen, "scummvm"); break; case 'g': @@ -406,6 +407,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) { _gfx_mode = parseGraphicsMode(option); if (_gfx_mode == -1) goto ShowHelpAndExit; + g_config->set("gfx_mode", option); g_config->set("gfx_mode", option, "scummvm"); break; // case 'h': reserved for help @@ -500,6 +502,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) { s += 3; } else long_option_value = true; + if (!strcmp (s, "multi-midi")) { _multi_midi = long_option_value; g_config->setBool ("multi_midi", _multi_midi); @@ -509,6 +512,10 @@ void GameDetector::parseCommandLine(int argc, char **argv) { } else if (!strcmp (s, "aspect-ratio")) { _aspectRatio = long_option_value; g_config->setBool ("aspect_ratio", _aspectRatio); + } else if (!strcmp (s, "fullscreen")) { + _fullScreen = long_option_value; + g_config->setBool("fullscreen", _fullScreen); + g_config->setBool("fullscreen", _fullScreen, "scummvm"); #ifndef DISABLE_SCUMM } else if (!strcmp (s, "demo-mode")) { _demo_mode = long_option_value; |