[Scummvm-git-logs] scummvm branch-2-6 -> 2805e66bf0cc8f9f545f4f9e21dcbdee6c19f57b
eriktorbjorn
noreply at scummvm.org
Sat Jun 25 14:29:31 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2805e66bf0 BASE: Print error messages on invalid command line parameters again
Commit: 2805e66bf0cc8f9f545f4f9e21dcbdee6c19f57b
https://github.com/scummvm/scummvm/commit/2805e66bf0cc8f9f545f4f9e21dcbdee6c19f57b
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-06-25T16:29:08+02:00
Commit Message:
BASE: Print error messages on invalid command line parameters again
The condition was accidentally inverted when the Symbian port was
removed, I belive.
Changed paths:
base/commandLine.cpp
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 2454f0842d8..6a7bb6d5c7c 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -55,7 +55,7 @@ namespace Base {
#ifndef DISABLE_COMMAND_LINE
-#if defined(__DS__)
+#if !defined(__DS__)
static const char USAGE_STRING[] =
"%s: %s\n"
"Usage: %s [OPTIONS]... [GAME]\n"
@@ -248,7 +248,7 @@ static void usage(const char *s, ...) {
vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
-#if defined(__DS__)
+#if !defined(__DS__)
printf(USAGE_STRING, s_appName, buf, s_appName, s_appName);
#endif
exit(1);
More information about the Scummvm-git-logs
mailing list