[Scummvm-cvs-logs] SF.net SVN: scummvm:[53023] scummvm/branches/branch-1-2-0/base/commandLine. cpp

agent-q at users.sourceforge.net agent-q at users.sourceforge.net
Tue Oct 5 00:42:28 CEST 2010


Revision: 53023
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53023&view=rev
Author:   agent-q
Date:     2010-10-04 22:42:28 +0000 (Mon, 04 Oct 2010)

Log Message:
-----------
DS: Prevent the command line help string from being included in the binary.

Modified Paths:
--------------
    scummvm/branches/branch-1-2-0/base/commandLine.cpp

Modified: scummvm/branches/branch-1-2-0/base/commandLine.cpp
===================================================================
--- scummvm/branches/branch-1-2-0/base/commandLine.cpp	2010-10-04 22:41:22 UTC (rev 53022)
+++ scummvm/branches/branch-1-2-0/base/commandLine.cpp	2010-10-04 22:42:28 UTC (rev 53023)
@@ -49,7 +49,7 @@
 ;
 
 // DONT FIXME: DO NOT ORDER ALPHABETICALLY, THIS IS ORDERED BY IMPORTANCE/CATEGORY! :)
-#if defined(__SYMBIAN32__) || defined(__GP32__) || defined(ANDROID)
+#if defined(__SYMBIAN32__) || defined(__GP32__) || defined(ANDROID) || defined(__DS__)
 static const char HELP_STRING[] = "NoUsageString"; // save more data segment space
 #else
 static const char HELP_STRING[] =
@@ -143,7 +143,7 @@
 	vsnprintf(buf, STRINGBUFLEN, s, va);
 	va_end(va);
 
-#if !(defined(__GP32__) || defined (__SYMBIAN32__))
+#if !(defined(__GP32__) || defined (__SYMBIAN32__) || defined(__DS__))
 	printf(USAGE_STRING, s_appName, buf, s_appName, s_appName);
 #endif
 	exit(1);
@@ -944,7 +944,7 @@
 	// environment variable. This is weaker than a --savepath on the
 	// command line, but overrides the default savepath, hence it is
 	// handled here, just before the command line gets parsed.
-#if !defined(_WIN32_WCE) && !defined(__GP32__) && !defined(ANDROID)
+#if !defined(_WIN32_WCE) && !defined(__GP32__) && !defined(ANDROID) && !defined(__DS__)
 	if (!settings.contains("savepath")) {
 		const char *dir = getenv("SCUMMVM_SAVEPATH");
 		if (dir && *dir && strlen(dir) < MAXPATHLEN) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list