diff options
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 7cc90d41f..0864a63a2 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -4,15 +4,16 @@ #define NEWGRF_CONFIG_H /* GRF config bit flags */ -enum { - GCF_DISABLED, - GCF_NOT_FOUND, - GCF_ACTIVATED, - GCF_SYSTEM, - GCF_UNSAFE, - GCF_STATIC, +typedef enum { + GCF_DISABLED, ///< GRF file is disabled + GCF_NOT_FOUND, ///< GRF file was not found in the local cache + GCF_ACTIVATED, ///< GRF file is active + GCF_SYSTEM, ///< GRF file is an openttd-internal system grf + GCF_UNSAFE, ///< GRF file is unsafe for static usage + GCF_STATIC, ///< GRF file is used statically (can be used in any MP game) + GCF_COMPATIBLE,///< GRF file does not exactly match the requested GRF (different MD5SUM), but grfid matches) GCF_COPY, ///< The data is copied from a grf in _all_grfs -}; +} GCF_Flags; typedef struct GRFConfig { char *filename; @@ -48,7 +49,7 @@ void AppendStaticGRFConfigs(GRFConfig **dst); void ClearGRFConfig(GRFConfig **config); void ClearGRFConfigList(GRFConfig **config); void ResetGRFConfig(bool defaults); -bool IsGoodGRFConfigList(void); +GCF_Flags IsGoodGRFConfigList(void); bool FillGRFDetails(GRFConfig *config, bool is_static); char *GRFBuildParamList(char *dst, const GRFConfig *c, const char *last); |