|
OpenTTD Source
1.11.0-beta2
|
Helper for scanning for files with GRF as extension. More...
Public Member Functions | |
| 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 Public Member Functions | |
| static uint | DoScan () |
| Do the scan for GRFs. | |
Private Attributes | |
| 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. | |
Private Attributes inherited from FileScanner | |
| Subdirectory | subdir |
| The current sub directory we are searching through. | |
Additional Inherited Members | |
Private Member Functions inherited from FileScanner | |
| virtual | ~FileScanner () |
| Destruct the proper one... | |
| uint | Scan (const char *extension, Subdirectory sd, bool tars=true, bool recursive=true) |
| Scan for files with the given extension in the given search path. More... | |
| uint | Scan (const char *extension, const char *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 580 of file newgrf_config.cpp.
|
overridevirtual |
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. |
| tar_filename | the name of the tar file the file is read from. |
Implements FileScanner.
Definition at line 604 of file newgrf_config.cpp.
References _all_grfs, _modal_progress_paint_mutex, _modal_progress_work_mutex, GRFConfig::filename, FillGRFDetails(), GetGRFStringFromGRFText(), GRFConfig::GetName(), GRFIdentifier::grfid, GRFConfig::ident, GRFIdentifier::md5sum, MODAL_PROGRESS_REDRAW_TIMEOUT, GRFConfig::name, GRFConfig::next, next_update, num_scanned, and UpdateNewGRFScanStatus().