]> icculus.org git repositories - btb/d2x.git/blob - main/playsave.h
use memcpy to avoid alignment problem
[btb/d2x.git] / main / playsave.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _PLAYSAVE_H
15 #define _PLAYSAVE_H
16
17 #define N_SAVE_SLOTS            10
18 #define GAME_NAME_LEN   25              //+1 for terminating zero = 26
19
20 #ifndef EZERO
21 #define EZERO 0
22 #endif
23
24 extern int Default_leveling_on;
25
26 //update the player's highest level.  returns errno (0 == no error)
27 int update_player_file();
28
29 //Used to save kconfig values to disk.
30 int write_player_file();
31
32 int new_player_config();
33
34 int read_player_file();
35
36 //set a new highest level for player for this mission
37 void set_highest_level(int levelnum);
38
39 //gets the player's highest level from the file for this mission
40 int get_highest_level(void);
41
42 #endif