From 2805e66bf0cc8f9f545f4f9e21dcbdee6c19f57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sat, 25 Jun 2022 16:24:53 +0200 Subject: [PATCH] BASE: Print error messages on invalid command line parameters again The condition was accidentally inverted when the Symbian port was removed, I belive. --- base/commandLine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);