From c2ee8d70e48a79a1f3fbe4003c82a545a29ae195 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 28 Dec 2004 11:51:31 +0000 Subject: (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!! --- saveload.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'saveload.c') diff --git a/saveload.c b/saveload.c index 736e98dc9..83b46c137 100644 --- a/saveload.c +++ b/saveload.c @@ -5,7 +5,6 @@ #include "town.h" #include "player.h" #include "saveload.h" -#include enum { SAVEGAME_MAJOR_VERSION = 4, @@ -18,47 +17,6 @@ enum { /******************************************************/ /******************************************************/ -typedef void WriterProc(uint len); -typedef uint ReaderProc(); - -typedef uint ReferenceToIntProc(void *v, uint t); -typedef void *IntToReferenceProc(uint r, uint t); - -typedef struct { - bool save; - byte need_length; - byte block_mode; - bool error; - byte version; - - int obj_len; - int array_index, last_array_index; - - uint32 offs_base; - - WriterProc *write_bytes; - ReaderProc *read_bytes; - - ReferenceToIntProc *ref_to_int_proc; - IntToReferenceProc *int_to_ref_proc; - - const ChunkHandler * const * chs; - const byte * const *includes; - - byte *bufp, *bufe; - - int tmp; - - // these 3 may be used by compressor/decompressors. - byte *buf; // pointer and size to read/write, initialized by init - uint bufsize; - FILE *fh; - - void (*excpt_uninit)(); - const char *excpt_msg; - jmp_buf excpt; // used to jump to "exception handler" -} SaverLoader; - enum NeedLengthValues { NL_NONE = 0,NL_WANTLENGTH = 1,NL_CALCLENGTH = 2}; SaverLoader _sl; -- cgit v1.2.3-54-g00ecf