summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r--crawl-ref/source/files.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index 80dcf2c3ec..5c639eeb14 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -41,9 +41,12 @@ std::vector<std::string> get_dir_files(const std::string &dir);
std::vector<std::string> get_dir_files_ext(const std::string &dir,
const std::string &ext);
-std::string datafile_path(std::string basename,
- bool croak_on_fail = true,
- bool test_base_path = false);
+std::string datafile_path(
+ std::string basename,
+ bool croak_on_fail = true,
+ bool test_base_path = false,
+ bool (*thing_exists)(const std::string&) = file_exists);
+
bool get_dos_compatible_file_name(std::string *fname);
std::string get_parent_directory(const std::string &filename);