diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-23 14:23:39 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-23 15:01:36 +0100 |
commit | 44143447dc8545d4dbaefb658b67e126f65e9e7b (patch) | |
tree | 964cee3568fa20a7d683cadee53aade9462dbd0b /crawl-ref/source/files.h | |
parent | db7514be202f8a9ea71741f8f6edac0626043f26 (diff) | |
download | crawl-ref-44143447dc8545d4dbaefb658b67e126f65e9e7b.tar.gz crawl-ref-44143447dc8545d4dbaefb658b67e126f65e9e7b.zip |
Embed the timestamp into des cache files instead of relying on the filesystem.
This allows detecting input files going backwards -- ie, with any non-git
downgrade.
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index 97024662f4..e75206a9a1 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -72,7 +72,7 @@ std::string change_file_extension(const std::string &file, const std::string &ext); time_t file_modtime(const std::string &file); -bool is_newer(const std::string &a, const std::string &b); +time_t file_modtime(FILE *f); std::vector<std::string> get_title_files(); |