MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / IsPathExcluded

Function IsPathExcluded

pcsx2/GameList.cpp:680–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680static bool IsPathExcluded(const std::vector<std::string>& excluded_paths, const std::string& path)
681{
682 return std::find_if(excluded_paths.begin(), excluded_paths.end(), [&path](const std::string& entry) { return !entry.empty() && path.starts_with(entry); }) != excluded_paths.end();
683}
684
685void GameList::ScanDirectory(const char* path, bool recursive, bool only_cache, const std::vector<std::string>& excluded_paths,
686 const PlayedTimeMap& played_time_map, const INISettingsInterface& custom_attributes_ini, ProgressCallback* progress)

Callers 2

ScanDirectoryMethod · 0.85
RescanPathMethod · 0.85

Calls 4

starts_withMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected