[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.218,1.219

Travis Howell kirben at users.sourceforge.net
Mon May 26 00:36:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv28738/simon

Modified Files:
	simon.cpp 
Log Message:

Error out if unsupport language option is used


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- simon.cpp	25 May 2003 11:02:39 -0000	1.218
+++ simon.cpp	26 May 2003 07:35:33 -0000	1.219
@@ -4420,6 +4420,10 @@
 	} else {
 		_subtitles = true;
 	}
+
+	if (_language == 4 || (_language > 5 && _language < 20))
+		error("Only English, French, German, Hebrew, Italian and Spanish are supported");
+
 	//Only English and German voice files were produced
 	if  (_language >= 2)
 		_subtitles = true;





More information about the Scummvm-git-logs mailing list