[Scummvm-git-logs] scummvm master -> 78c8bd2fbf1f037ddd17c676c5e69fcbffb630d8
eriktorbjorn
noreply at scummvm.org
Sat Jun 25 14:28:25 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:
78c8bd2fbf BASE: Print error messages on invalid command line parameters again
Commit: 78c8bd2fbf1f037ddd17c676c5e69fcbffb630d8
https://github.com/scummvm/scummvm/commit/78c8bd2fbf1f037ddd17c676c5e69fcbffb630d8
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-06-25T16:27:59+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 628aec4dbd0..211516a8236 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