Helper for scanning for files with tar as extension. More...
#include <fileio_func.h>
Public Member Functions | |
bool | AddFile (const char *filename, size_t basepath_length) |
Add a file with the given filename. | |
Static Public Member Functions | |
static uint | DoScan () |
Do the scan for Tars. |
Helper for scanning for files with tar as extension.
Definition at line 91 of file fileio_func.h.
bool TarScanner::AddFile | ( | const char * | filename, | |
size_t | basepath_length | |||
) | [virtual] |
Add a file with the given filename.
filename | the full path to the file to read | |
basepath_length | amount of characters to chop of before to get a filename relative to the search path. |
< Name of the file
< Size of the file, in ASCII
< Path of the file
< Temporary list to collect links
Implements FileScanner.
Definition at line 553 of file fileio.cpp.
References Align(), lastof, SimplifyFileName(), and strecpy().
Referenced by ClientNetworkContentSocketHandler::AfterDownload().
uint TarScanner::DoScan | ( | ) | [static] |
Do the scan for Tars.
Definition at line 542 of file fileio.cpp.
References AI_DIR, AI_LIBRARY_DIR, DATA_DIR, FileScanner::Scan(), and SCENARIO_DIR.
Referenced by DeterminePaths().