MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / readDirectory

Function readDirectory

TheForceEngine/TFE_FileSystem/fileutil.cpp:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace FileUtil
15{
16 void readDirectory(const char* dir, const char* ext, FileList& fileList)
17 {
18 char searchStr[TFE_MAX_PATH];
19 _finddata_t fileInfo;
20
21 sprintf(searchStr, "%s*.%s", dir, ext);
22 intptr_t hFile = _findfirst(searchStr, &fileInfo);
23 if (hFile != -1)
24 {
25 do
26 {
27 fileList.push_back( string(fileInfo.name) );
28 } while ( _findnext(hFile, &fileInfo) == 0 );
29 _findclose(hFile);
30 }
31 }
32
33 void readSubdirectories(const char* dir, FileList& dirList)
34 {

Callers 12

populateReplayDirectoryFunction · 0.50
addDirectoryFilesFunction · 0.50
exportLevelsFunction · 0.50
autosaveFunction · 0.50
loadCustomGobFunction · 0.50
modLoader_readFunction · 0.50
readFromQueueFunction · 0.50
addFilesMethod · 0.50
populateSaveDirectoryFunction · 0.50
getOutputCountMethod · 0.50

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected