|
@@ -28,25 +28,25 @@
|
|
|
#include "core/alloc_func.hpp"
|
|
|
#include "functions.h"
|
|
|
#include "core/endian_func.hpp"
|
|
|
#include "vehicle_base.h"
|
|
|
#include "autoreplace_base.h"
|
|
|
#include "statusbar_gui.h"
|
|
|
#include "fileio_func.h"
|
|
|
#include <list>
|
|
|
#include "gamelog.h"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
extern const uint16 SAVEGAME_VERSION = 100;
|
|
|
extern const uint16 SAVEGAME_VERSION = 101;
|
|
|
|
|
|
SavegameType _savegame_type; ///< type of savegame we are loading
|
|
|
|
|
|
uint32 _ttdp_version; ///< version of TTDP savegame (if applicable)
|
|
|
uint16 _sl_version; ///< the major savegame version identifier
|
|
|
byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!
|
|
|
|
|
|
typedef void WriterProc(size_t len);
|
|
|
typedef size_t ReaderProc();
|
|
|
|
|
|
/** The saveload struct, containing reader-writer functions, bufffer, version, etc. */
|
|
|
static struct {
|