File diff r6138:b11eea571618 → r6139:0128edd33976
src/newgrf_config.h
Show inline comments
 
/* $Id$ */
 

	
 
#ifndef NEWGRF_CONFIG_H
 
#define NEWGRF_CONFIG_H
 

	
 
#include "openttd.h"
 

	
 
/* GRF config bit flags */
 
typedef enum {
 
	GCF_DISABLED,  ///< GRF file is disabled
 
	GCF_NOT_FOUND, ///< GRF file was not found in the local cache
 
	GCF_ACTIVATED, ///< GRF file is active
 
	GCF_SYSTEM,    ///< GRF file is an openttd-internal system grf
 
@@ -17,17 +19,25 @@ typedef enum {
 

	
 
typedef struct GRFIdentifier {
 
	uint32 grfid;
 
	uint8 md5sum[16];
 
} GRF;
 

	
 
typedef struct GRFError {
 
	StringID message;
 
	StringID data;
 
	StringID severity;
 
	uint8 num_params;
 
	uint8 param_number[2];
 
} GRFError;
 

	
 
typedef struct GRFConfig : public GRFIdentifier {
 
	char *filename;
 
	char *name;
 
	char *info;
 
	char *error;
 
	GRFError *error;
 

	
 
	uint8 flags;
 
	uint32 param[0x80];
 
	uint8 num_params;
 

	
 
	struct GRFConfig *next;