diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-22 08:41:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-22 08:41:20 +0000 |
commit | 1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch) | |
tree | cafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/files.h | |
parent | 6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff) | |
download | crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip |
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index a2d357cac8..b7fd81a5fd 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -3,6 +3,8 @@ * Summary: Functions used to save and load levels/games. * Written by: Linley Henzell and Alexey Guzeev * + * Modified for Crawl Reference by $Author$ on $Date$ + * * Change History (most recent first): * * <1> -/--/-- LRH Created @@ -12,9 +14,11 @@ #ifndef FILES_H #define FILES_H +#include "externs.h" #include "FixAry.h" #include <stdio.h> #include <string> +#include <vector> // referenced in files - newgame - ouch - overmap: #define MAX_LEVELS 50 @@ -25,20 +29,16 @@ // 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 +std::string datafile_path(const std::string &basename); + +void check_savedir(std::string &dir); bool travel_load_map( char branch, int absdepth ); +std::vector<player> find_saved_characters(); + std::string get_savedir_filename(const char *pre, const char *suf, - const char *ext); + const char *ext, bool suppress_uid = false); std::string get_prefs_filename(); @@ -47,7 +47,7 @@ void load( unsigned char stair_taken, int load_mode, bool was_a_labyrinth, // last updated 12may2000 {dlb} /* *********************************************************************** - * called from: acr - libmac - misc + * called from: acr - misc * *********************************************************************** */ void save_game(bool leave_game); @@ -69,9 +69,8 @@ void save_ghost( bool force = false ); /* *********************************************************************** * called from: files hiscores * *********************************************************************** */ -void make_filename( char *buf, const char *prefix, int level, int where, - bool isLabyrinth, bool isGhost ); - +std::string make_filename( const char *prefix, int level, int where, + bool isLabyrinth, bool isGhost ); void writeShort(FILE *file, short s); |