#include "strings_type.h"
Go to the source code of this file.
Data Structures | |
struct | GRFIdentifier |
struct | GRFError |
struct | GRFConfig |
Enumerations | |
enum | GCF_Flags { GCF_SYSTEM, GCF_UNSAFE, GCF_STATIC, GCF_COMPATIBLE, GCF_COPY, GCF_INIT_ONLY, GCF_RESERVED } |
enum | GRFStatus { GCS_UNKNOWN, GCS_DISABLED, GCS_NOT_FOUND, GCS_INITIALISED, GCS_ACTIVATED } |
enum | GRFBugs { GBUG_VEH_LENGTH } |
Encountered GRF bugs. More... | |
enum | GRFListCompatibility { GLC_ALL_GOOD, GLC_COMPATIBLE, GLC_NOT_FOUND } |
Status of post-gameload GRF compatibility check. | |
Functions | |
void | ScanNewGRFFiles () |
const GRFConfig * | FindGRFConfig (uint32 grfid, const uint8 *md5sum=NULL) |
GRFConfig * | GetGRFConfig (uint32 grfid) |
GRFConfig ** | CopyGRFConfigList (GRFConfig **dst, const GRFConfig *src, bool init_only) |
Copy a GRF Config list. | |
void | AppendStaticGRFConfigs (GRFConfig **dst) |
Appends the static GRFs to a list of GRFs. | |
void | AppendToGRFConfigList (GRFConfig **dst, GRFConfig *el) |
Appends an element to a list of GRFs. | |
void | ClearGRFConfig (GRFConfig **config) |
void | ClearGRFConfigList (GRFConfig **config) |
void | ResetGRFConfig (bool defaults) |
GRFListCompatibility | IsGoodGRFConfigList () |
Check if all GRFs in the GRF config from a savegame can be loaded. | |
bool | FillGRFDetails (GRFConfig *config, bool is_static) |
char * | GRFBuildParamList (char *dst, const GRFConfig *c, const char *last) |
void | ShowNewGRFSettings (bool editable, bool show_params, bool exec_changes, GRFConfig **config) |
Setup the NewGRF gui. | |
Variables | |
GRFConfig * | _all_grfs |
GRFConfig * | _grfconfig |
GRFConfig * | _grfconfig_newgame |
GRFConfig * | _grfconfig_static |
Definition in file newgrf_config.h.
enum GCF_Flags |
Definition at line 11 of file newgrf_config.h.
enum GRFBugs |
enum GRFStatus |
Definition at line 21 of file newgrf_config.h.
void AppendStaticGRFConfigs | ( | GRFConfig ** | dst | ) |
Appends the static GRFs to a list of GRFs.
dst | the head of the list to add to |
Definition at line 181 of file newgrf_config.cpp.
References CopyGRFConfigList(), and RemoveDuplicatesFromGRFConfigList().
void AppendToGRFConfigList | ( | GRFConfig ** | dst, | |
GRFConfig * | el | |||
) |
Appends an element to a list of GRFs.
dst | the head of the list to add to | |
el | the new tail to be |
Definition at line 193 of file newgrf_config.cpp.
References RemoveDuplicatesFromGRFConfigList().
GRFConfig** CopyGRFConfigList | ( | GRFConfig ** | dst, | |
const GRFConfig * | src, | |||
bool | init_only | |||
) |
Copy a GRF Config list.
dst | pointer to destination list | |
src | pointer to source list values | |
init_only | the copied GRF will be processed up to GLS_INIT |
Definition at line 119 of file newgrf_config.cpp.
References ClrBit(), GCF_INIT_ONLY, and SetBit().
Referenced by AppendStaticGRFConfigs(), NewGRFConfirmationCallback(), and ShowNewGRFSettings().
GRFListCompatibility IsGoodGRFConfigList | ( | ) |
Check if all GRFs in the GRF config from a savegame can be loaded.
Definition at line 219 of file newgrf_config.cpp.
References BSWAP32(), buf, GCF_COMPATIBLE, GCF_COPY, GCS_NOT_FOUND, HasBit(), md5sumToString(), and SetBit().
void ShowNewGRFSettings | ( | bool | editable, | |
bool | show_params, | |||
bool | exec_changes, | |||
GRFConfig ** | config | |||
) |
Setup the NewGRF gui.
editable | allow the user to make changes to the grfconfig in the window | |
show_params | show information about what parameters are set for the grf files | |
exec_changes | if changes are made to the list (editable is true), apply these changes immediately or only update the list | |
config | pointer to a linked-list of grfconfig's that will be shown |
Definition at line 578 of file newgrf_gui.cpp.
References AllocateWindowDesc(), and CopyGRFConfigList().