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 GROOVIE_SAVELOAD_H
23#define GROOVIE_SAVELOAD_H
24
25#include "common/savefile.h"
26#include "engines/game.h"
27#include "engines/savestate.h"
28
29namespace Groovie {
30
31class SaveLoad {
32public:
33 // Validating slot numbers
34 static int getMaximumSlot();
35 static bool isSlotValid(int slot);
36
37 // Getting information
38 static Common::String getSlotSaveName(const Common::String &target, int slot);
39 static SaveStateList listValidSaves(const Common::String &target);
40
41 // Opening savefiles
42 static Common::InSaveFile *openForLoading(const Common::String &target, int slot, SaveStateDescriptor *descriptor = nullptr);
43 static Common::OutSaveFile *openForSaving(const Common::String &target, int slot);
44};
45
46} // End of Groovie namespace
47
48#endif // GROOVIE_SAVELOAD_H
Definition: savefile.h:54
Definition: stream.h:745
Definition: str.h:59
Definition: saveload.h:31
Definition: savestate.h:56
Definition: cursor.h:32