diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-27 01:55:00 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-27 01:55:00 (GMT) |
commit | 0967a26bff45951d7b86fe628e8b1156e6e40ede (patch) | |
tree | fa72ca81652700a373023dace3a4163036ece20e /src/parsersettings.cc | |
parent | 837b574351cdaddaebed6c4b0ba281b7e20c2a0f (diff) |
Support locating previously missing modules. yet another part of #364
Diffstat (limited to 'src/parsersettings.cc')
-rw-r--r-- | src/parsersettings.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/parsersettings.cc b/src/parsersettings.cc index 8924eb4..cb7c93d 100644 --- a/src/parsersettings.cc +++ b/src/parsersettings.cc @@ -64,8 +64,15 @@ static bool check_valid(const fs::path &p, const std::vector<std::string> *openf return true; } -// check if file is valid, search path for valid simple file -// return empty path on failure +/*! + Check if the given filename is valid. + + If the given filename is absolute, do a simple check. + If not, search the applicable paths for a valid file. + + Returns the absolute path to a valid file, or an empty path if no + valid files could be found. +*/ fs::path find_valid_path(const fs::path &sourcepath, const fs::path &localpath, const std::vector<std::string> *openfilenames) |