From 8cd48767f93deb6ac4ef084574971e8f74a21038 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 10 Nov 2010 17:48:31 +0000 Subject: (svn r21132) -Codechange: unify the language file version/validity checking --- src/strgen/strgen.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/strgen') 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); -- cgit v1.2.3-70-g09d2