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

Method ListFilesTree

neo/framework/FileSystem.cpp:1674–1691  ·  view source on GitHub ↗

=============== idFileSystemLocal::ListFilesTree =============== */

Source from the content-addressed store, hash-verified

1672===============
1673*/
1674idFileList *idFileSystemLocal::ListFilesTree( const char *relativePath, const char *extension, bool sort, const char* gamedir ) {
1675 idHashIndex hashIndex( 4096, 4096 );
1676 idStrList extensionList;
1677
1678 idFileList *fileList = new idFileList();
1679 fileList->basePath = relativePath;
1680 fileList->list.SetGranularity( 4096 );
1681
1682 GetExtensionList( extension, extensionList );
1683
1684 GetFileListTree( relativePath, extensionList, fileList->list, hashIndex, gamedir );
1685
1686 if ( sort ) {
1687 idStrListSortPaths( fileList->list );
1688 }
1689
1690 return fileList;
1691}
1692
1693/*
1694===============

Callers 12

addModelsMethod · 0.80
addGuisMethod · 0.80
BuildTreeMethod · 0.80
AddSoundsMethod · 0.80
AddSoundsMethod · 0.80
OnBtnRefreshwaveMethod · 0.80
AddScriptsToTreeMethod · 0.80
AddGUIsToTreeMethod · 0.80
InitLanguageDictMethod · 0.80
Com_LocalizeGuis_fFunction · 0.80
DirTree_fMethod · 0.80
CreateTypeInfoMethod · 0.80

Calls 2

idStrListSortPathsFunction · 0.85
SetGranularityMethod · 0.45

Tested by

no test coverage detected