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 * Additional copyright for this file:
8 * Copyright (C) 1994-1998 Revolution Software Ltd.
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef SWORD2_SAVELOAD_H
25#define SWORD2_SAVELOAD_H
26
27namespace Sword2 {
28
29#define SAVE_DESCRIPTION_LEN 64
30
31// Save & Restore error codes
32
33enum {
34 SR_OK, // No worries
35 SR_ERR_FILEOPEN, // Can't open file - Couldn't create file for
36 // saving, or couldn't find file for loading.
37 SR_ERR_INCOMPATIBLE, // (Restore) Incompatible savegame data.
38 // Savegame file is obsolete. (Won't happen
39 // after development stops)
40 SR_ERR_READFAIL, // (Restore) Failed on reading savegame file -
41 // Something screwed up during the read
42 SR_ERR_WRITEFAIL // (Save) Failed on writing savegame file -
43 // Something screwed up during the write -
44 // could be hard-drive full..?
45};
46
47} // End of namespace Sword2
48
49#endif
Definition: animation.h:37