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

Method ListFiles

neo/framework/FileSystem.cpp:1622–1638  ·  view source on GitHub ↗

=============== idFileSystemLocal::ListFiles =============== */

Source from the content-addressed store, hash-verified

1620===============
1621*/
1622idFileList *idFileSystemLocal::ListFiles( const char *relativePath, const char *extension, bool sort, bool fullRelativePath, const char* gamedir ) {
1623 idHashIndex hashIndex( 4096, 4096 );
1624 idStrList extensionList;
1625
1626 idFileList *fileList = new idFileList;
1627 fileList->basePath = relativePath;
1628
1629 GetExtensionList( extension, extensionList );
1630
1631 GetFileList( relativePath, extensionList, fileList->list, hashIndex, fullRelativePath, gamedir );
1632
1633 if ( sort ) {
1634 idStrListSortPaths( fileList->list );
1635 }
1636
1637 return fileList;
1638}
1639
1640/*
1641===============

Callers 10

ExportModelsMethod · 0.80
UpdateFileListMethod · 0.80
RunAASDir_fFunction · 0.80
InitMethod · 0.80
RegisterDeclFolderMethod · 0.80
GetSaveGameListMethod · 0.80
Dir_fMethod · 0.80
ActivateMethod · 0.80
ExportModelsMethod · 0.80

Calls 2

GetFileListFunction · 0.85
idStrListSortPathsFunction · 0.85

Tested by

no test coverage detected