MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / file_select

Function file_select

Source/ResourceMan.cpp:593–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593int file_select(const struct dirent *entry) {
594 std::string name = entry->d_name;
595
596 transform(name.begin(), name.end(), name.begin(), ::toupper);
597
598 if (name.find(findType) == std::string::npos)
599 return false;
600
601 return true;
602}
603
604std::vector<std::string> cResourceMan::DirectoryList(const std::string& pPath, const std::string& pExtension) {
605 struct dirent **directFiles;

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected