ScummVM API documentation
savegame.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 PRIVATE_SAVEGAME_H
23#define PRIVATE_SAVEGAME_H
24
25#include "common/language.h"
26#include "common/platform.h"
27
28namespace Common {
29class SeekableReadStream;
30class WriteStream;
31}
32
33namespace Private {
34
35// Savegame format history:
36//
37// Version - new/changed feature
38// =============================
39// 4 - _pausedBackgroundSoundName (December 2025)
40// 3 - Radio detailed state (December 2025)
41// 2 - Phone clip detailed state (December 2025)
42// 1 - Metadata header and more game state (November 2025)
43//
44// Earlier versions did not have a header and not supported.
45
46const uint16 kCurrentSavegameVersion = 4;
47const uint16 kMinimumSavegameVersion = 3;
48
50 uint16 version;
51 Common::Language language;
52 Common::Platform platform;
53};
54
58void writeSavegameMetadata(Common::WriteStream *stream, const SavegameMetadata &meta);
59
63bool readSavegameMetadata(Common::SeekableReadStream *stream, SavegameMetadata &meta);
64
65} // End of namespace Private
66
67#endif
Definition: stream.h:745
Definition: stream.h:77
Language
Definition: language.h:45
Platform
Definition: platform.h:93
Definition: algorithm.h:29
Definition: savegame.h:49