MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsValidSearchPath

Function IsValidSearchPath

src/fileio.cpp:75–78  ·  view source on GitHub ↗

* Checks whether the given search path is a valid search path * @param sp the search path to check * @return true if the search path is valid */

Source from the content-addressed store, hash-verified

73 * @return true if the search path is valid
74 */
75static bool IsValidSearchPath(Searchpath sp)
76{
77 return sp < _searchpaths.size() && !_searchpaths[sp].empty();
78}
79
80static void FillValidSearchPaths(bool only_local_path)
81{

Callers 2

FillValidSearchPathsFunction · 0.85
DeterminePathsFunction · 0.85

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected