MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SE_BuildFileList

Function SE_BuildFileList

code/qcommon/stringed_interface.cpp:209–229  ·  view source on GitHub ↗

replace this with a call to whatever your own code equivalent is. expected result is a ';'-delineated string (including last one) containing file-list search results

Source from the content-addressed store, hash-verified

207// expected result is a ';'-delineated string (including last one) containing file-list search results
208//
209int SE_BuildFileList( const char *psStartDir, std::string &strResults )
210{
211#ifndef _STRINGED
212 giFilesFound = 0;
213 strResults = "";
214
215 SE_R_ListFiles( sSE_INGAME_FILE_EXTENSION, psStartDir, strResults );
216
217 return giFilesFound;
218#else
219 // .ST files...
220 //
221 int iFilesFound = BuildFileList( va("%s\\*%s",psStartDir, sSE_INGAME_FILE_EXTENSION), // LPCSTR psPathAndFilter,
222 true // bool bRecurseSubDirs
223 );
224
225 extern string strResult;
226 strResults = strResult;
227 return iFilesFound;
228#endif
229}
230
231/////////////////////// eof ///////////////////////
232

Callers

nothing calls this directly

Calls 2

SE_R_ListFilesFunction · 0.70
vaFunction · 0.70

Tested by

no test coverage detected