diff options
Diffstat (limited to 'src/language.h')
-rw-r--r-- | src/language.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/language.h b/src/language.h index 84e9fa9b9..6a208ab92 100644 --- a/src/language.h +++ b/src/language.h @@ -12,6 +12,8 @@ #ifndef LANGUAGE_H #define LANGUAGE_H +#include "core/smallvec_type.hpp" + /** Header of a language file. */ struct LanguagePackHeader { static const uint32 IDENT = 0x474E414C; ///< Identifier for OpenTTD language files, big endian for "LANG" @@ -56,6 +58,12 @@ struct LanguageMetadata : public LanguagePackHeader { char file[MAX_PATH]; ///< Name of the file we read this data from. }; +/** Type for the list of language meta data. */ +typedef SmallVector<LanguageMetadata, 4> LanguageList; + +/** The actual list of language meta data. */ +extern LanguageList _languages; + /** The currently loaded language. */ extern const LanguageMetadata *_current_language; |