OpenTTD Source
20241108-master-g80f628063a
|
Helper for scanning for files with SocialIntegration as extension. More...
Public Member Functions | |
void | Scan () |
bool | AddFile (const std::string &filename, size_t basepath_length, const std::string &) override |
Add a file with the given filename. More... | |
Additional Inherited Members | |
Private Member Functions inherited from FileScanner | |
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... | |
Private Attributes inherited from FileScanner | |
Subdirectory | subdir |
The current sub directory we are searching through. | |
Helper for scanning for files with SocialIntegration as extension.
Definition at line 54 of file social_integration.cpp.
|
inlineoverridevirtual |
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 69 of file social_integration.cpp.
References _plugins, Debug, SocialIntegrationPlugin::FAILED, and SocialIntegrationPlugin::UNSUPPORTED_API.