From 4feb080cf6a641ebbc07fd86630f9ffb7866ccde Mon Sep 17 00:00:00 2001 From: Pawel Kolodziejski Date: Tue, 26 May 2009 06:53:32 +0000 Subject: [PATCH] display help if gameid is not specified in commandline --- base/commandLine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/commandLine.cpp b/base/commandLine.cpp index ac679f62030..3846fe77acd 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -466,8 +466,15 @@ bool processSettings(Common::String &command, Common::StringMap &settings) { } else { #ifndef DISABLE_COMMAND_LINE usage("Unrecognized game target '%s'", command.c_str()); +#else + return false; #endif // DISABLE_COMMAND_LINE } + } else { +#ifndef DISABLE_COMMAND_LINE + printf(HELP_STRING, s_appName); +#endif // DISABLE_COMMAND_LINE + return false; }