[Scummvm-cvs-logs] SF.net SVN: scummvm: [24460] scummvm/branches/branch-0-9-0/engines/kyra/ staticres.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Oct 22 22:06:57 CEST 2006
Revision: 24460
http://svn.sourceforge.net/scummvm/?rev=24460&view=rev
Author: lordhoto
Date: 2006-10-22 13:06:52 -0700 (Sun, 22 Oct 2006)
Log Message:
-----------
DDon't output warning about unsupported language more than one time. (backport)
Modified Paths:
--------------
scummvm/branches/branch-0-9-0/engines/kyra/staticres.cpp
Modified: scummvm/branches/branch-0-9-0/engines/kyra/staticres.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/kyra/staticres.cpp 2006-10-22 20:04:45 UTC (rev 24459)
+++ scummvm/branches/branch-0-9-0/engines/kyra/staticres.cpp 2006-10-22 20:06:52 UTC (rev 24460)
@@ -362,7 +362,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