summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.h
diff options
context:
space:
mode:
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);