summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-10 17:48:31 +0000
committerrubidium <rubidium@openttd.org>2010-11-10 17:48:31 +0000
commit8cd48767f93deb6ac4ef084574971e8f74a21038 (patch)
treeb365af3913a57381a3843f3086ede3eeee7614e6 /src/strgen/strgen.h
parent2df2c021dfcc990245345fcf1e7d4f86b4aba4f8 (diff)
downloadopenttd-8cd48767f93deb6ac4ef084574971e8f74a21038.tar.xz
(svn r21132) -Codechange: unify the language file version/validity checking
Diffstat (limited to 'src/strgen/strgen.h')
-rw-r--r--src/strgen/strgen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/strgen/strgen.h b/src/strgen/strgen.h
index ecaeb05ff..778c64361 100644
--- a/src/strgen/strgen.h
+++ b/src/strgen/strgen.h
@@ -42,6 +42,12 @@ struct LanguagePackHeader {
uint16 winlangid; ///< windows language id
uint8 newgrflangid; ///< newgrf language id
byte pad[3]; ///< pad header to be a multiple of 4
+
+ /**
+ * Check whether the header is a valid header for OpenTTD.
+ * @return true iff the header is deemed valid.
+ */
+ bool IsValid() const;
};
assert_compile(sizeof(LanguagePackHeader) % 4 == 0);