From 08a494f184c20725f5cec8546c65854a8a667476 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 12 Dec 2006 19:38:41 +0000 Subject: (svn r7490) -Feature: Load a list of NewGRFs from the config (in the [newgrf-static] section) that should always be loaded. These will also be active during the intro screen, and in multiplayer games. Only "network-safe" NewGRFs are permitted, such as fonts and sprite replacement sets. --- newgrf_config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'newgrf_config.h') diff --git a/newgrf_config.h b/newgrf_config.h index 45d0e270d..cb490ebad 100644 --- a/newgrf_config.h +++ b/newgrf_config.h @@ -8,6 +8,9 @@ enum { GCF_DISABLED, GCF_NOT_FOUND, GCF_ACTIVATED, + GCF_SYSTEM, + GCF_UNSAFE, + GCF_STATIC, }; typedef struct GRFConfig { @@ -33,13 +36,17 @@ extern GRFConfig *_grfconfig; /* First item in list of default GRF set up */ extern GRFConfig *_grfconfig_newgame; +/* First item in list of static GRF set up */ +extern GRFConfig *_grfconfig_static; + void ScanNewGRFFiles(void); const GRFConfig *FindGRFConfig(uint32 grfid, uint8 *md5sum); const GRFConfig *GetGRFConfig(uint32 grfid); +void ClearGRFConfig(GRFConfig *config); void ClearGRFConfigList(GRFConfig *config); void ResetGRFConfig(bool defaults); bool IsGoodGRFConfigList(void); -bool FillGRFDetails(GRFConfig *config); +bool FillGRFDetails(GRFConfig *config, bool is_static); char *GRFBuildParamList(char *dst, const GRFConfig *c, const char *last); /* In newgrf_gui.c */ -- cgit v1.2.3-54-g00ecf