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

Max Horn fingolfin at users.sourceforge.net
Fri Oct 17 17:28:14 CEST 2003


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

Modified Files:
	gameDetector.cpp 
Log Message:
fix handling of unknown targets (previously, you could invoke scummvm with a randomg string, e.g. 'scumvmm foobar', and it wouldn't error out as it should)

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- gameDetector.cpp	18 Oct 2003 00:22:46 -0000	1.39
+++ gameDetector.cpp	18 Oct 2003 00:25:13 -0000	1.40
@@ -463,11 +463,11 @@
 		}
 	}
 	
-	return;
-
+	if (current_option) {
 ShowHelpAndExit:
-	printf(USAGE_STRING);
-	exit(1);
+		printf(USAGE_STRING);
+		exit(1);
+	}
 }
 
 void GameDetector::setTarget(const String &name) {





More information about the Scummvm-git-logs mailing list