MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / GetFileList

Function GetFileList

neo/framework/Common.cpp:1972–1991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1970}
1971
1972void GetFileList(const char* dir, const char* ext, idStrList& list) {
1973
1974 //Recurse Subdirectories
1975 idStrList dirList;
1976 Sys_ListFiles(dir, "/", dirList);
1977 for(int i = 0; i < dirList.Num(); i++) {
1978 if(dirList[i] == "." || dirList[i] == "..") {
1979 continue;
1980 }
1981 idStr fullName = va("%s/%s", dir, dirList[i].c_str());
1982 GetFileList(fullName, ext, list);
1983 }
1984
1985 idStrList fileList;
1986 Sys_ListFiles(dir, ext, fileList);
1987 for(int i = 0; i < fileList.Num(); i++) {
1988 idStr fullName = va("%s/%s", dir, fileList[i].c_str());
1989 list.Append(fullName);
1990 }
1991}
1992
1993int LocalizeMap(const char* mapName, idLangDict &langDict, ListHash& listHash, idStrList& excludeList, bool writeFile) {
1994

Callers 5

Com_LocalizeMaps_fFunction · 0.85
Com_LocalizeMapsTest_fFunction · 0.85
ListFilesMethod · 0.85
GetFileListTreeMethod · 0.85

Calls 5

vaFunction · 0.85
Sys_ListFilesFunction · 0.50
NumMethod · 0.45
c_strMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected