summaryrefslogtreecommitdiff
path: root/newgrf_config.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-12 19:38:41 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-12 19:38:41 +0000
commit08a494f184c20725f5cec8546c65854a8a667476 (patch)
tree574ad9deeac872fb0cbc50fb59447de01f6ff72c /newgrf_config.h
parent2e9b97e3321aee8d6525d7e11eead2f67d30d0e8 (diff)
downloadopenttd-08a494f184c20725f5cec8546c65854a8a667476.tar.xz
(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.
Diffstat (limited to 'newgrf_config.h')
-rw-r--r--newgrf_config.h9
1 files changed, 8 insertions, 1 deletions
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 */