diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/gameDetector.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 44e823ef65..cd3b599460 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -96,6 +96,7 @@ static const char USAGE_STRING[] = " --native-mt32 True Roland MT-32 (disable GM emulation)\n" " --output-rate=RATE Select output sample rate in Hz (e.g. 22050)\n" " --aspect-ratio Enable aspect ratio correction\n" + " --render-mode=MODE Enable additional render modes (cga, ega, hercules)\n" "\n" #if !defined(DISABLE_SKY) || !defined(DISABLE_QUEEN) " --alt-intro Use alternative intro for CD versions of Beneath a\n" @@ -122,6 +123,7 @@ GameDetector::GameDetector() { ConfMan.registerDefault("fullscreen", false); ConfMan.registerDefault("aspect_ratio", false); ConfMan.registerDefault("gfx_mode", "normal"); + ConfMan.registerDefault("render_mode", "default"); // Sound & Music ConfMan.registerDefault("music_volume", 192); @@ -478,6 +480,14 @@ void GameDetector::parseCommandLine(int argc, char **argv) { ConfMan.set("aspect_ratio", cmdValue, kTransientDomain); END_OPTION + DO_LONG_OPTION("render-mode") + int renderMode = Common::parseRenderMode(option); + if (renderMode == Common::kRenderDefault) + goto ShowHelpAndExit; + + ConfMan.set("render_mode", option, kTransientDomain); + END_OPTION + DO_LONG_OPTION("savepath") // TODO: Verify whether the path is valid ConfMan.set("savepath", option, kTransientDomain); |