dxx-rebirth/main/playsave.h
md2211 a0b4cac982 * Removed executable flag on most files
* Reverted value of SOUND_MAX_VOLUME
2007-09-21 19:06:05 +00:00

51 lines
1.4 KiB
C

/* $Id: playsave.h,v 1.1.1.1 2006/03/17 19:55:10 zicodxx Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* Header for playsave.c
*
*/
#ifndef _PLAYSAVE_H
#define _PLAYSAVE_H
#define N_SAVE_SLOTS 10
#define GAME_NAME_LEN 25 // +1 for terminating zero = 26
#ifndef EZERO
#define EZERO 0
#endif
extern int Default_leveling_on;
// update the player's highest level. returns errno (0 == no error)
int update_player_file();
// Used to save kconfig values to disk.
int write_player_file();
int new_player_config();
int read_player_file();
// set a new highest level for player for this mission
void set_highest_level(int levelnum);
// gets the player's highest level from the file for this mission
int get_highest_level(void);
#endif /* _PLAYSAVE_H */