(svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames...

This commit is contained in:
2006-12-04 08:30:04 +00:00
parent dc8992a677
commit bd66cc5756
13 changed files with 433 additions and 40 deletions

View File

@@ -4,8 +4,10 @@
#define NEWGRF_H
#include "station.h"
#include "newgrf_config.h"
typedef enum GrfLoadingStage {
GLS_FILESCAN,
GLS_LABELSCAN,
GLS_INIT,
GLS_ACTIVATION,
@@ -58,19 +60,11 @@ typedef struct GRFFile {
extern GRFFile *_first_grffile;
typedef struct GRFConfig {
const char *filename;
uint32 param[0x80];
byte num_params;
struct GRFConfig *next;
} GRFConfig;
extern GRFConfig *_first_grfconfig;
extern SpriteID _signal_base;
extern SpriteID _coast_base;
extern bool _have_2cc;
void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
void LoadNewGRF(uint load_index, uint file_index);
#endif /* NEWGRF_H */