diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-13 02:13:30 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-13 02:13:30 +0530 |
commit | 4e7b912639fcb2bd793c68f00ef1c988f7d55258 (patch) | |
tree | a1ff5a9f52b7f456d348dfe613b68eb32382cbdb /crawl-ref/source/files.h | |
parent | bc98f6a58c42609979603595cda4a43be940ddc7 (diff) | |
download | crawl-ref-4e7b912639fcb2bd793c68f00ef1c988f7d55258.tar.gz crawl-ref-4e7b912639fcb2bd793c68f00ef1c988f7d55258.zip |
Compile .des and database files into a versioned cache directory under the savedir so that different save-compatible Crawls can share a common savedir while having different data dirs.
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index 402008148b..d61c255b7e 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -60,7 +60,8 @@ std::string get_path_relative_to(const std::string &referencefile, std::string catpath(const std::string &first, const std::string &second); std::string canonicalise_file_separator(const std::string &path); -bool check_dir(const std::string &what, std::string &dir, bool silent = false); +bool check_mkdir(const std::string &what, std::string *dir, + bool silent = false); std::vector<player_save_info> find_saved_characters(); @@ -74,6 +75,7 @@ std::string get_savedir_filename(const std::string &pre, const std::string &ext, bool suppress_uid = false); std::string get_savedir_path(const std::string &shortpath); +std::string savedir_versioned_path(const std::string &subdirs = ""); std::string get_prefs_filename(); std::string change_file_extension(const std::string &file, const std::string &ext); |