diff options
Diffstat (limited to 'stone_soup/crawl-ref/source/files.h')
-rw-r--r-- | stone_soup/crawl-ref/source/files.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/stone_soup/crawl-ref/source/files.h b/stone_soup/crawl-ref/source/files.h deleted file mode 100644 index a2d357cac8..0000000000 --- a/stone_soup/crawl-ref/source/files.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * File: files.cc - * Summary: Functions used to save and load levels/games. - * Written by: Linley Henzell and Alexey Guzeev - * - * Change History (most recent first): - * - * <1> -/--/-- LRH Created - */ - - -#ifndef FILES_H -#define FILES_H - -#include "FixAry.h" -#include <stdio.h> -#include <string> - -// referenced in files - newgame - ouch - overmap: -#define MAX_LEVELS 50 -// referenced in files - newgame - ouch - overmap: -#define MAX_BRANCHES 30 // there must be a way this can be extracted from other data - - -// referenced in files - newgame - ouch: -extern FixedArray<bool, MAX_LEVELS, MAX_BRANCHES> tmp_file_pairs; - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: acr - misc - * *********************************************************************** */ -#if 0 -void load( unsigned char stair_taken, bool moving_level, - bool was_a_labyrinth, char old_level, bool want_followers, - bool is_new_game, char where_were_you2 ); -#endif - -bool travel_load_map( char branch, int absdepth ); - -std::string get_savedir_filename(const char *pre, const char *suf, - const char *ext); - -std::string get_prefs_filename(); - -void load( unsigned char stair_taken, int load_mode, bool was_a_labyrinth, - char old_level, char where_were_you2 ); - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: acr - libmac - misc - * *********************************************************************** */ -void save_game(bool leave_game); - - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: acr - * *********************************************************************** */ -void restore_game(void); - - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: ouch - * *********************************************************************** */ -void save_ghost( bool force = false ); - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: files hiscores - * *********************************************************************** */ -void make_filename( char *buf, const char *prefix, int level, int where, - bool isLabyrinth, bool isGhost ); - - -void writeShort(FILE *file, short s); - -short readShort(FILE *file); - -void writeByte(FILE *file, unsigned char byte); - -unsigned char readByte(FILE *file); - -void writeString(FILE* file, const std::string &s); - -std::string readString(FILE *file); - -void writeLong(FILE* file, long num); - -long readLong(FILE *file); - -#endif |