[Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.40,1.41

Max Horn fingolfin at users.sourceforge.net
Mon Oct 20 13:53:08 CEST 2003


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv16728/base

Modified Files:
	gameDetector.cpp 
Log Message:
usage string has to be updated (as I explained in various commit messages and in #scummv, but it seems not everybody saw that :-)

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- gameDetector.cpp	18 Oct 2003 00:25:13 -0000	1.40
+++ gameDetector.cpp	20 Oct 2003 20:06:29 -0000	1.41
@@ -43,7 +43,8 @@
 #else
 static const char USAGE_STRING[] = 
 	"ScummVM - Graphical Adventure Game Interpreter\n"
-	"Syntax:\n"
+	"New USAGE_STRING is missing here!\n" 
+/*	"Syntax:\n"
 	"  scummvm [OPTIONS] [game]\n"
 	"Options:\n"
 	"  -p<path>       - Look for game in <path>\n"
@@ -90,6 +91,7 @@
 	"\n"
 	"The meaning of long options can be inverted by prefixing them with \"no-\",\n"
 	"e.g. \"--no-aspect-ratio\".\n"
+*/
 ;
 #endif
 
@@ -411,7 +413,7 @@
 				ConfMan.set("cdrom", (int)strtol(option, 0, 10));
 			END_OPTION
 	
-			DO_LONG_OPTION("joystick")
+			DO_LONG_OPTION_OPT("joystick")
 				ConfMan.set("joystick_num", (option != NULL) ? (int)strtol(option, 0, 10) : 0);
 			END_OPTION
 			
@@ -565,7 +567,7 @@
 	}
 
 	if (!detectGame()) {
-		warning("%s is an invalid target. Use the -z parameter to list targets", _targetName.c_str());
+		warning("%s is an invalid target. Use the --list-targets option to list targets", _targetName.c_str());
 		return false;
 	}
 





More information about the Scummvm-git-logs mailing list