15#include "table/strings.h"
17#include "../safeguards.h"
29 for (uint i = 0; i < num; i++) {
50 for (uint i = 0; i < num; i++) {
55 if (file !=
nullptr && file != _cur.
grfconfig) {
56 GrfMsg(2,
"GRFInhibit: Deactivating file '{}'", file->
filename);
Class to read from a NewGRF file.
uint32_t ReadDWord()
Read a single DWord (32 bits).
uint8_t ReadByte()
Read a single byte (8 bits).
void GRFUnsafe(ByteReader &)
Set the current NewGRF as unsafe for static use.
GRFError * DisableGrf(StringID message, GRFConfig *config)
Disable a GRF.
NewGRF buffer reader definition.
GRFConfig * GetGRFConfig(uint32_t grfid, uint32_t mask)
Retrieve a NewGRF from the current config by its grfid.
NewGRF internal processing state.
Information about GRF, used in the game and (part of it) in savegames.
std::string filename
Filename - either with or without full path.
GRFIdentifier ident
grfid and md5sum to uniquely identify newgrfs
std::string GetName() const
Get the name of this grf.
Information about why GRF had problems during initialisation.
std::string data
Additional data for message and custom_message.
uint32_t grfid
GRF ID (defined by Action 0x08)
GRFConfig * grfconfig
Config of the currently processed GRF file.