|
@@ -25,25 +25,25 @@
|
|
|
#include "window_func.h"
|
|
|
#include "strings_func.h"
|
|
|
#include "gfx_func.h"
|
|
|
#include "core/alloc_func.hpp"
|
|
|
#include "functions.h"
|
|
|
#include "core/endian_func.hpp"
|
|
|
#include "vehicle_base.h"
|
|
|
#include "autoreplace_base.h"
|
|
|
#include <list>
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
extern const uint16 SAVEGAME_VERSION = 87;
|
|
|
extern const uint16 SAVEGAME_VERSION = 88;
|
|
|
uint16 _sl_version; ///< the major savegame version identifier
|
|
|
byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!
|
|
|
|
|
|
typedef void WriterProc(uint len);
|
|
|
typedef uint ReaderProc();
|
|
|
|
|
|
/** The saveload struct, containing reader-writer functions, bufffer, version, etc. */
|
|
|
static struct {
|
|
|
bool save; ///< are we doing a save or a load atm. True when saving
|
|
|
byte need_length; ///< ???
|
|
|
byte block_mode; ///< ???
|
|
|
bool error; ///< did an error occur or not
|