Helper for scanning for files with GRF as extension. More...
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 GRFs. |
Helper for scanning for files with GRF as extension.
Definition at line 302 of file newgrf_config.cpp.
bool GRFFileScanner::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. |
Implements FileScanner.
Definition at line 314 of file newgrf_config.cpp.
References GRFConfig::filename, GRFIdentifier::grfid, GRFIdentifier::md5sum, GRFConfig::name, and GRFConfig::next.
static uint GRFFileScanner::DoScan | ( | ) | [inline, static] |
Do the scan for GRFs.
Definition at line 307 of file newgrf_config.cpp.
References DATA_DIR, and FileScanner::Scan().