Helper for scanning for files with GRF as extension.
More...
|
bool | AddFile (const std::string &filename, size_t basepath_length, const std::string &tar_filename) override |
| Add a file with the given filename. More...
|
|
|
static uint | DoScan () |
| Do the scan for GRFs.
|
|
|
std::chrono::steady_clock::time_point | next_update |
| The next moment we do update the screen.
|
|
uint | num_scanned |
| The number of GRFs we have scanned.
|
|
Subdirectory | subdir |
| The current sub directory we are searching through.
|
|
|
virtual | ~FileScanner ()=default |
| Destruct the proper one...
|
|
uint | Scan (std::string_view extension, Subdirectory sd, bool tars=true, bool recursive=true) |
| Scan for files with the given extension in the given search path. More...
|
|
uint | Scan (std::string_view extension, const std::string &directory, bool recursive=true) |
| Scan for files with the given extension in the given search path. More...
|
|
Helper for scanning for files with GRF as extension.
Definition at line 524 of file newgrf_config.cpp.
◆ AddFile()
bool GRFFileScanner::AddFile |
( |
const std::string & |
filename, |
|
|
size_t |
basepath_length, |
|
|
const std::string & |
tar_filename |
|
) |
| |
|
overridevirtual |
Add a file with the given filename.
- Parameters
-
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. |
tar_filename | the name of the tar file the file is read from. |
- Returns
- true if the file is added.
Implements FileScanner.
Definition at line 553 of file newgrf_config.cpp.
The documentation for this class was generated from the following file: