diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-17 07:19:04 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-17 07:19:04 +0000 |
commit | ae735f39601423c88be471340dfe88dc3d3d103d (patch) | |
tree | 6c70a5c28e9bb8202846737217ede5c0eaed2c13 /crawl-ref/source/files.h | |
parent | df2a542d658cebfc151aff61d42abafd82de60c2 (diff) | |
download | crawl-ref-ae735f39601423c88be471340dfe88dc3d3d103d.tar.gz crawl-ref-ae735f39601423c88be471340dfe88dc3d3d103d.zip |
Fix 2017893: long file names not working on DOS. Crawl now takes a
shot at abbreviating them, and only fails if it can't find that file
either.
Handles all files included by default in /settings and /docs except
changes.stone_soup which is not strictly necessary for the version
information.
Tested artificially by manually mutilating the file names; not
actually tested on DOS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6578 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index 3e28c65a30..95995e9c24 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -44,6 +44,7 @@ std::string datafile_path(std::string basename, bool croak_on_fail = true, bool test_base_path = false); +bool get_dos_compatible_file_name(std::string *fname); std::string get_parent_directory(const std::string &filename); std::string get_base_filename(const std::string &filename); std::string get_path_relative_to(const std::string &referencefile, |