1 /* $Id: playsave.h,v 1.3 2004-08-28 23:17:45 schaffner Exp $ */
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.
17 * Header for playsave.c
25 #define N_SAVE_SLOTS 10
26 #define GAME_NAME_LEN 25 // +1 for terminating zero = 26
35 #define PLAYER_DIR ":Players:"
38 extern int Default_leveling_on;
40 // update the player's highest level. returns errno (0 == no error)
41 int update_player_file();
43 // Used to save kconfig values to disk.
44 int write_player_file();
46 int new_player_config();
48 int read_player_file();
50 // set a new highest level for player for this mission
51 void set_highest_level(int levelnum);
53 // gets the player's highest level from the file for this mission
54 int get_highest_level(void);
56 #endif /* _PLAYSAVE_H */