summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-04 08:30:04 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-04 08:30:04 +0000
commitbd66cc57569a034b02674fa8aaa5dbe521e73a36 (patch)
treefb2a8cf881b385cb52b110880f86128061ea020c /newgrf.h
parentdc8992a677b8b7b56b8ad55d7da690b77105bb83 (diff)
downloadopenttd-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.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/newgrf.h b/newgrf.h
index a4dcecccf..ac4102207 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -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 */