diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-04 08:30:04 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-04 08:30:04 +0000 |
commit | bd66cc57569a034b02674fa8aaa5dbe521e73a36 (patch) | |
tree | fb2a8cf881b385cb52b110880f86128061ea020c /newgrf.h | |
parent | dc8992a677b8b7b56b8ad55d7da690b77105bb83 (diff) | |
download | openttd-bd66cc57569a034b02674fa8aaa5dbe521e73a36.tar.xz |
(svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames...
Diffstat (limited to 'newgrf.h')
-rw-r--r-- | newgrf.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 */ |