main/playsave.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include "error.h"
#include "gameseq.h"
#include "player.h"
#include "playsave.h"
#include "joy.h"
#include "kconfig.h"
#include "digi.h"
#include "newmenu.h"
#include "joydefs.h"
#include "palette.h"
#include "multi.h"
#include "menu.h"
#include "config.h"
#include "text.h"
#include "mono.h"
#include "state.h"
#include "reorder.h"
#include "d_io.h"
#include "u_mem.h"
#include "network.h"
#include "strutil.h"
#include "strio.h"
#include "vers_id.h"

Classes

struct  save_info_v5
struct  save_info
struct  hli
struct  saved_game

Defines

#define PATH_MAX   255
#define SAVE_FILE_ID   0x44504c52
#define SAVED_GAME_VERSION   8
#define COMPATIBLE_SAVED_GAME_VERSION   4
#define COMPATIBLE_PLAYER_STRUCT_VERSION   16
#define ADV_WEAPON_ORDER   1
#define NEW_KEYS   2
#define WEAPON_KEYS   4
#define JOYSTICK   8
#define NEWER_KEYS   16
#define WEAPON_ORDER   32

Functions

void init_game_list ()
int new_player_config ()
int read_player_d1x (const char *filename)
unsigned char * decode_stat (unsigned char *p, int *v, char *effcode)
void plyr_read_stats_v (int *k, int *d)
void plyr_read_stats ()
void plyr_save_stats ()
int write_player_d1x (const char *filename)
int read_player_file ()
int find_hli_entry ()
void set_highest_level (int levelnum)
int get_highest_level (void)
int write_player_file ()
int save_player_game (int slot_num, char *text)
int load_player_game (int slot_num)
int get_game_list (char *game_text[N_SAVE_SLOTS])
int update_player_file ()
int player_exists (const char *callsign)

Variables

int n_highest_levels
hli highest_levels [MAX_MISSIONS]
saved_game saved_games [N_SAVE_SLOTS]
int Default_leveling_on = 1
char effcode1 [] = "d1xrocks_SKCORX!D"
char effcode2 [] = "AObe)7Rn1 -+/zZ'0"
char effcode3 [] = "aoeuidhtnAOEUIDH6"
char effcode4 [] = "'/.;]<{=,+?|}->[3"
int multi_kills_stat = 0
int multi_deaths_stat = 0
int screen_width
int screen_height

Define Documentation

#define ADV_WEAPON_ORDER   1
 

#define COMPATIBLE_PLAYER_STRUCT_VERSION   16
 

#define COMPATIBLE_SAVED_GAME_VERSION   4
 

#define JOYSTICK   8
 

#define NEW_KEYS   2
 

#define NEWER_KEYS   16
 

#define PATH_MAX   255
 

#define SAVE_FILE_ID   0x44504c52
 

#define SAVED_GAME_VERSION   8
 

#define WEAPON_KEYS   4
 

#define WEAPON_ORDER   32
 


Function Documentation

unsigned char* decode_stat unsigned char *  p,
int *  v,
char *  effcode
 

int find_hli_entry  ) 
 

int get_game_list char *  game_text[N_SAVE_SLOTS]  ) 
 

int get_highest_level void   ) 
 

void init_game_list  ) 
 

int load_player_game int  slot_num  ) 
 

int new_player_config  ) 
 

int player_exists const char *  callsign  ) 
 

void plyr_read_stats  ) 
 

void plyr_read_stats_v int *  k,
int *  d
 

void plyr_save_stats  ) 
 

int read_player_d1x const char *  filename  ) 
 

int read_player_file  ) 
 

int save_player_game int  slot_num,
char *  text
 

void set_highest_level int  levelnum  ) 
 

int update_player_file  ) 
 

int write_player_d1x const char *  filename  ) 
 

int write_player_file  ) 
 


Variable Documentation

int Default_leveling_on = 1
 

char effcode1[] = "d1xrocks_SKCORX!D"
 

char effcode2[] = "AObe)7Rn1 -+/zZ'0"
 

char effcode3[] = "aoeuidhtnAOEUIDH6"
 

char effcode4[] = "'/.;]<{=,+?|}->[3"
 

hli highest_levels[MAX_MISSIONS]
 

int multi_deaths_stat = 0
 

int multi_kills_stat = 0
 

int n_highest_levels
 

saved_game saved_games[N_SAVE_SLOTS]
 

int screen_height
 

int screen_width
 


Generated on Mon Aug 28 20:55:33 2006 for D1X-Rebirth by  doxygen 1.4.6