]> icculus.org git repositories - btb/d2x.git/blob - main/playsave.h
fix savegame thumbnail saving in OGL (d1x r1.6)
[btb/d2x.git] / main / playsave.h
1 /* $Id: playsave.h,v 1.2 2003-10-10 09:36:35 btb Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * Header for playsave.c
18  *
19  * Old Log:
20  * Revision 1.1  1995/05/16  16:01:19  allender
21  * Initial revision
22  *
23  * Revision 2.0  1995/02/27  11:31:24  john
24  * New version 2.0, which has no anonymous unions, builds with
25  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
26  *
27  * Revision 1.10  1995/01/22  18:57:04  matt
28  * Made player highest level work with missions
29  *
30  * Revision 1.9  1994/12/12  11:37:15  matt
31  * Fixed auto leveling defaults & saving
32  *
33  * Revision 1.8  1994/12/08  10:01:37  john
34  * Changed the way the player callsign stuff works.
35  *
36  * Revision 1.7  1994/11/25  22:46:56  matt
37  * Made saved game descriptions longer
38  *
39  * Revision 1.6  1994/10/24  20:00:02  john
40  * Added prototype for read_player_file.
41  *
42  * Revision 1.5  1994/10/17  13:07:12  john
43  * Moved the descent.cfg info into the player config file.
44  *
45  * Revision 1.4  1994/10/09  14:54:32  matt
46  * Made player cockpit state & window size save/restore with saved games & automap
47  *
48  * Revision 1.3  1994/10/08  23:08:09  matt
49  * Added error check & handling for game load/save disk io
50  *
51  * Revision 1.2  1994/09/28  17:25:06  matt
52  * Added first draft of game save/load system
53  *
54  * Revision 1.1  1994/09/27  15:47:23  matt
55  * Initial revision
56  *
57  *
58  */
59
60
61 #ifndef _PLAYSAVE_H
62 #define _PLAYSAVE_H
63
64 #define N_SAVE_SLOTS    10
65 #define GAME_NAME_LEN   25      // +1 for terminating zero = 26
66
67 #ifndef EZERO
68 #define EZERO 0
69 #endif
70
71 extern int Default_leveling_on;
72
73 // update the player's highest level.  returns errno (0 == no error)
74 int update_player_file();
75
76 // Used to save kconfig values to disk.
77 int write_player_file();
78
79 int new_player_config();
80
81 int read_player_file();
82
83 // set a new highest level for player for this mission
84 void set_highest_level(int levelnum);
85
86 // gets the player's highest level from the file for this mission
87 int get_highest_level(void);
88
89 #endif /* _PLAYSAVE_H */