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
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (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, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23  */
24 
25 #ifndef	SWORD2_SAVELOAD_H
26 #define	SWORD2_SAVELOAD_H
27 
28 namespace Sword2 {
29 
30 #define	SAVE_DESCRIPTION_LEN	64
31 
32 // Save & Restore error codes
33 
34 enum {
35 	SR_OK,			// No worries
36 	SR_ERR_FILEOPEN,	// Can't open file - Couldn't create file for
37 				// saving, or couldn't find file for loading.
38 	SR_ERR_INCOMPATIBLE,	// (Restore) Incompatible savegame data.
39 				// Savegame file is obsolete. (Won't happen
40 				// after development stops)
41 	SR_ERR_READFAIL,	// (Restore) Failed on reading savegame file -
42 				// Something screwed up during the read
43 	SR_ERR_WRITEFAIL	// (Save) Failed on writing savegame file -
44 				// Something screwed up during the write -
45 				// could be hard-drive full..?
46 };
47 
48 } // End of namespace Sword2
49 
50 #endif
51