aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-10-22 20:04:45 +0000
committerJohannes Schickel2006-10-22 20:04:45 +0000
commite58da07488a7067a6b0dc9351a1eac85345220fe (patch)
treed5bef17dd0785dcb4e6fa224d4fa28be7ead52cc
parent17afeaa80ee66836680953da0827fc47b0f00767 (diff)
downloadscummvm-rg350-e58da07488a7067a6b0dc9351a1eac85345220fe.tar.gz
scummvm-rg350-e58da07488a7067a6b0dc9351a1eac85345220fe.tar.bz2
scummvm-rg350-e58da07488a7067a6b0dc9351a1eac85345220fe.zip
Don't output warning about unsupported language more than one time.
svn-id: r24459
-rw-r--r--engines/kyra/staticres.cpp6
1 files changed, 5 insertions, 1 deletions
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;
}