From e58da07488a7067a6b0dc9351a1eac85345220fe Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 22 Oct 2006 20:04:45 +0000 Subject: Don't output warning about unsupported language more than one time. svn-id: r24459 --- engines/kyra/staticres.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index ad9c32fcc6..8271cc88ae 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -408,7 +408,11 @@ bool StaticResource::loadLanguageTable(const char *filename, void *&ptr, int &si 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; } -- cgit v1.2.3