|
OpenTTD Source
14.0-beta3
|
List of file information. More...
#include <fios.h>
Public Member Functions | |
| void | BuildFileList (AbstractFileType abstract_filetype, SaveLoadOperation fop, bool show_dirs) |
| Construct a file list with the given kind of files, for the stated purpose. More... | |
| const FiosItem * | FindItem (const std::string_view file) |
| Find file information of a file by its name from the file list. More... | |
| void FileList::BuildFileList | ( | AbstractFileType | abstract_filetype, |
| SaveLoadOperation | fop, | ||
| bool | show_dirs | ||
| ) |
Construct a file list with the given kind of files, for the stated purpose.
| abstract_filetype | Kind of files to collect. |
| fop | Purpose of the collection, either SLO_LOAD or SLO_SAVE. |
| show_dirs | Whether to show directories. |
Definition at line 70 of file fios.cpp.
References FiosGetHeightmapList(), FiosGetSavegameList(), FiosGetScenarioList(), FT_HEIGHTMAP, FT_NONE, FT_SAVEGAME, FT_SCENARIO, SLO_LOAD, and SLO_SAVE.
Referenced by ConsoleFileList::ValidateFileList().
| const FiosItem * FileList::FindItem | ( | const std::string_view | file | ) |
Find file information of a file by its name from the file list.
| file | The filename to return information about. Can be the actual name or a numbered entry into the filename list. |
nullptr if the file is not available. Definition at line 102 of file fios.cpp.
References IsInsideMM().