diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-09-24 20:18:07 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-09-24 20:27:06 +0530 |
commit | e65f11731155dec69701d806ba00c6bd24ffc33c (patch) | |
tree | 58d06a0b0b9d300ce3c6a59fec5ecd01ca8c7582 /crawl-ref/source/files.h | |
parent | 383469b3ec04e7343eab5460e948f32b3857943a (diff) | |
download | crawl-ref-e65f11731155dec69701d806ba00c6bd24ffc33c.tar.gz crawl-ref-e65f11731155dec69701d806ba00c6bd24ffc33c.zip |
Set up a basic testing framework for LOS. ./crawl -test with a full debug build will run the test.
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index e732e354ca..50da4cb0cc 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -39,6 +39,10 @@ bool is_absolute_path(const std::string &path); bool is_read_safe_path(const std::string &path); void assert_read_safe_path(const std::string &path) throw (std::string); +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); |