aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMatthew Hoops2008-11-14 22:37:32 +0000
committerMatthew Hoops2008-11-14 22:37:32 +0000
commita5721dc52d1fd0b8c81ff343de34b09f0d7eefbb (patch)
tree9cd503825f7f4607d86ed9bd577fa0d5c8817937 /base
parent7d3e9b3d35d05dfd19fc3edcdc8c03c6cee7aa35 (diff)
downloadscummvm-rg350-a5721dc52d1fd0b8c81ff343de34b09f0d7eefbb.tar.gz
scummvm-rg350-a5721dc52d1fd0b8c81ff343de34b09f0d7eefbb.tar.bz2
scummvm-rg350-a5721dc52d1fd0b8c81ff343de34b09f0d7eefbb.zip
The demo mode flag should also be compiled if Groovie is compiled in
svn-id: r35064
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 6d1d7b3c8d..2605796ca9 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -112,8 +112,10 @@ static const char HELP_STRING[] =
" --copy-protection Enable copy protection in SCUMM games, when\n"
" ScummVM disables it by default.\n"
" --talkspeed=NUM Set talk speed for games (default: 60)\n"
+#if defined(ENABLE_SCUMM) || defined(ENABLE_GROOVIE)
+ " --demo-mode Start demo mode of Maniac Mansion or The 7th Guest\n"
+#endif
#ifdef ENABLE_SCUMM
- " --demo-mode Start demo mode of Maniac Mansion\n"
" --tempo=NUM Set music tempo (in percent, 50-200) for SCUMM games\n"
" (default: 100)\n"
#endif
@@ -186,8 +188,10 @@ void registerDefaults() {
ConfMan.registerDefault("copy_protection", false);
ConfMan.registerDefault("talkspeed", 60);
-#ifdef ENABLE_SCUMM
+#if defined(ENABLE_SCUMM) || defined(ENABLE_GROOVIE)
ConfMan.registerDefault("demo_mode", false);
+#endif
+#ifdef ENABLE_SCUMM
ConfMan.registerDefault("tempo", 0);
#endif
@@ -486,7 +490,8 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
#ifdef ENABLE_SCUMM
DO_LONG_OPTION_INT("tempo")
END_OPTION
-
+#endif
+#if defined(ENABLE_SCUMM) || defined(ENABLE_GROOVIE)
DO_LONG_OPTION_BOOL("demo-mode")
END_OPTION
#endif