(svn r21132) -Codechange: unify the language file version/validity checking

This commit is contained in:
rubidium
2010-11-10 17:48:31 +00:00
parent 2df2c021df
commit 8cd48767f9
2 changed files with 17 additions and 6 deletions

View File

@@ -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);