[Scummvm-cvs-logs] SF.net SVN: scummvm: [24459] scummvm/trunk/engines/kyra/staticres.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Oct 22 22:04:50 CEST 2006


Revision: 24459
          http://svn.sourceforge.net/scummvm/?rev=24459&view=rev
Author:   lordhoto
Date:     2006-10-22 13:04:45 -0700 (Sun, 22 Oct 2006)

Log Message:
-----------
Don't output warning about unsupported language more than one time.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/staticres.cpp

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2006-10-22 19:53:56 UTC (rev 24458)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2006-10-22 20:04:45 UTC (rev 24459)
@@ -408,7 +408,11 @@
 	strcpy(file, filename);
 	strcat(file, languages[0].ext);
 	if (loadStringTable(file, ptr, size)) {
-		warning("coudln't find specific language table for your version, using English now");
+		static bool warned = false;
+		if (!warned) {
+			warned = true;
+			warning("coudln't find specific language table for your version, using English now");
+		}
 		return true;
 	}
 


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