|
@@ -73,25 +73,25 @@ struct GRFConfig : public GRFIdentifier
|
|
|
struct GRFConfig *next; ///< NOSAVE: Next item in the linked list
|
|
|
|
|
|
bool IsOpenTTDBaseGRF() const;
|
|
|
};
|
|
|
|
|
|
extern GRFConfig *_all_grfs; ///< First item in list of all scanned NewGRFs
|
|
|
extern GRFConfig *_grfconfig; ///< First item in list of current GRF set up
|
|
|
extern GRFConfig *_grfconfig_newgame; ///< First item in list of default GRF set up
|
|
|
extern GRFConfig *_grfconfig_static; ///< First item in list of static GRF set up
|
|
|
|
|
|
void ScanNewGRFFiles();
|
|
|
const GRFConfig *FindGRFConfig(uint32 grfid, const uint8 *md5sum = NULL);
|
|
|
GRFConfig *GetGRFConfig(uint32 grfid);
|
|
|
GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF);
|
|
|
GRFConfig **CopyGRFConfigList(GRFConfig **dst, const GRFConfig *src, bool init_only);
|
|
|
void AppendStaticGRFConfigs(GRFConfig **dst);
|
|
|
void AppendToGRFConfigList(GRFConfig **dst, GRFConfig *el);
|
|
|
void ClearGRFConfig(GRFConfig **config);
|
|
|
void ClearGRFConfigList(GRFConfig **config);
|
|
|
void ResetGRFConfig(bool defaults);
|
|
|
GRFListCompatibility IsGoodGRFConfigList();
|
|
|
bool FillGRFDetails(GRFConfig *config, bool is_static);
|
|
|
char *GRFBuildParamList(char *dst, const GRFConfig *c, const char *last);
|
|
|
|
|
|
/* In newgrf_gui.cpp */
|
|
|
void ShowNewGRFSettings(bool editable, bool show_params, bool exec_changes, GRFConfig **config);
|