From a5721dc52d1fd0b8c81ff343de34b09f0d7eefbb Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 14 Nov 2008 22:37:32 +0000 Subject: The demo mode flag should also be compiled if Groovie is compiled in svn-id: r35064 --- base/commandLine.cpp | 11 ++++++++--- 1 file 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 -- cgit v1.2.3