diff options
author | maedhros <maedhros@openttd.org> | 2007-02-24 16:34:37 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-02-24 16:34:37 +0000 |
commit | 8b6350d3a337739d2939685f4b9a9310ef5f0eaf (patch) | |
tree | 774677fb220475a45680ff648e10dfca1176faa2 /src/newgrf_config.h | |
parent | 8ac0e7be21cb9bcbd0e3da6d5d4cf0159ff1b847 (diff) | |
download | openttd-8b6350d3a337739d2939685f4b9a9310ef5f0eaf.tar.xz |
(svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly.
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index f0bb773a4..94be7ee34 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -3,6 +3,8 @@ #ifndef NEWGRF_CONFIG_H #define NEWGRF_CONFIG_H +#include "openttd.h" + /* GRF config bit flags */ typedef enum { GCF_DISABLED, ///< GRF file is disabled @@ -20,11 +22,19 @@ typedef struct GRFIdentifier { uint8 md5sum[16]; } GRF; +typedef struct GRFError { + StringID message; + StringID data; + StringID severity; + uint8 num_params; + uint8 param_number[2]; +} GRFError; + typedef struct GRFConfig : public GRFIdentifier { char *filename; char *name; char *info; - char *error; + GRFError *error; uint8 flags; uint32 param[0x80]; |