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
27namespace Cine {
28
29extern 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
74static const uint32 TEMP_OS_FORMAT_ID = MKTAG('T', 'E', 'M', 'P');
75
77static const uint32 VERSIONED_FW_FORMAT_ID = MKTAG('C', '1', 'F', 'W');
78static const uint32 VERSIONED_OS_FORMAT_ID = MKTAG('C', '2', 'O', 'S');
79
83static const uint32 CURRENT_SAVE_VER = 4;
84
92static const uint32 LAST_TEMP_OS_SAVE_VER = 3;
93
96 uint32 id;
97 uint32 version;
98 uint32 size;
99};
100
101
102} // End of namespace Cine
103
104#endif
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188
Definition: anim.h:29
CineSaveGameFormat
Definition: saveload.h:63
Definition: saveload.h:95
uint32 size
Size of the chunk after this header in bytes.
Definition: saveload.h:98
uint32 version
Version number.
Definition: saveload.h:97
uint32 id
Identifier (e.g. MKTAG('T','E','M','P'))
Definition: saveload.h:96