diff options
Diffstat (limited to 'trunk/source/files.h')
-rw-r--r-- | trunk/source/files.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/trunk/source/files.h b/trunk/source/files.h index d0b2c68362..a2d357cac8 100644 --- a/trunk/source/files.h +++ b/trunk/source/files.h @@ -13,7 +13,8 @@ #define FILES_H #include "FixAry.h" - +#include <stdio.h> +#include <string> // referenced in files - newgame - ouch - overmap: #define MAX_LEVELS 50 @@ -34,6 +35,13 @@ void load( unsigned char stair_taken, bool moving_level, 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 ); @@ -64,4 +72,21 @@ void save_ghost( bool force = false ); 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 |