ScummVM API documentation
saveload.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * 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, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef CINE_SAVELOAD_H
23 #define CINE_SAVELOAD_H
24 
25 #include "common/endian.h"
26 
27 namespace Cine {
28 
29 extern int16 currentDisk;
30 
64  ANIMSIZE_UNKNOWN,
65  ANIMSIZE_23,
66  ANIMSIZE_30_PTRS_BROKEN,
67  ANIMSIZE_30_PTRS_INTACT,
68  TEMP_OS_FORMAT,
69  VERSIONED_FW_FORMAT,
70  VERSIONED_OS_FORMAT
71 };
72 
74 static const uint32 TEMP_OS_FORMAT_ID = MKTAG('T', 'E', 'M', 'P');
75 
77 static const uint32 VERSIONED_FW_FORMAT_ID = MKTAG('C', '1', 'F', 'W');
78 static const uint32 VERSIONED_OS_FORMAT_ID = MKTAG('C', '2', 'O', 'S');
79 
83 static const uint32 CURRENT_SAVE_VER = 4;
84 
92 static const uint32 LAST_TEMP_OS_SAVE_VER = 3;
93 
95 struct ChunkHeader {
96  uint32 id;
97  uint32 version;
98  uint32 size;
99 };
100 
101 
102 } // End of namespace Cine
103 
104 #endif
Definition: anim.h:29
uint32 size
Size of the chunk after this header in bytes.
Definition: saveload.h:98
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188
Definition: saveload.h:95
uint32 id
Identifier (e.g. MKTAG(&#39;T&#39;,&#39;E&#39;,&#39;M&#39;,&#39;P&#39;))
Definition: saveload.h:96
uint32 version
Version number.
Definition: saveload.h:97
CineSaveGameFormat
Definition: saveload.h:63