Subversion Repositories eduke32

Rev

Rev 1677 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1677 terminx 1
//-------------------------------------------------------------------------
2
/*
3
Copyright (C) 2010 EDuke32 developers and contributors
4
 
5
This file is part of EDuke32.
6
 
7
EDuke32 is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
15
See the GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20
*/
21
//-------------------------------------------------------------------------
22
 
23
#ifndef __savegame_h__
24
#define __savegame_h__
25
 
26
#pragma pack(push,1)
27
struct savehead
28
{
1707 terminx 29
    char name[21];
1677 terminx 30
    int32_t numplr,volnum,levnum,plrskl;
31
    char boardfn[BMAX_PATH];
32
};
33
#pragma pack(pop)
34
 
35
int32_t sv_updatestate(int32_t frominit);
36
int32_t sv_readdiff(int32_t fil);
37
uint32_t sv_writediff(FILE *fil);
38
int32_t sv_loadsnapshot(int32_t fil,int32_t *ret_hasdiffs,int32_t *ret_demoticcnt,int32_t *ret_synccompress);
39
int32_t sv_saveandmakesnapshot(FILE *fil,int32_t recdiffs,int32_t diffcompress,int32_t synccompress);
40
void sv_freemem();
41
int32_t G_SavePlayer(int32_t spot);
42
int32_t G_LoadPlayer(int32_t spot);
43
int32_t G_LoadSaveHeader(char spot,struct savehead *saveh);
44
void ReadSaveGameHeaders(void);
45
extern char *bitptr;
46
#endif