=============== idFileSystemLocal::ListFiles =============== */
| 1620 | =============== |
| 1621 | */ |
| 1622 | idFileList *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 | =============== |
no test coverage detected