OpenTTD Source: ConsoleFileList Class Reference

OpenTTD Source 12.2

Public Member Functions | Data Fields
ConsoleFileList Class Reference

File list storage for the console, for caching the last 'ls' command. More...

Inheritance diagram for ConsoleFileList:

## Public Member Functions
void | InvalidateFileList ()
| Declare the file storage cache as being invalid, also clears all stored files.
void | ValidateFileList (bool force_reload=false)
| (Re-)validate the file storage cache. More...
Public Member Functions inherited from FileList
void | BuildFileList (AbstractFileType abstract_filetype, SaveLoadOperation fop)
| Construct a file list with the given kind of files, for the stated purpose. More...
const FiosItem * | FindItem (const char *file)
| Find file information of a file by its name from the file list. More...

## Data Fields
bool | file_list_valid
| If set, the file list is valid.

## Detailed Description

File list storage for the console, for caching the last 'ls' command.

Definition at line 52 of file console_cmds.cpp.

## Member Function Documentation

## ◆ ValidateFileList()

void ConsoleFileList::ValidateFileList | ( | bool | force_reload = `false` | ) |
| inline

(Re-)validate the file storage cache.

Only makes a change if the storage was invalid, or if force_reload.

Parameters

  force_reload | Always reload the file storage cache.

Definition at line 70 of file console_cmds.cpp.

References FileList::BuildFileList(), file_list_valid, FT_SAVEGAME, and SLO_LOAD.

The documentation for this class was generated from the following file:

- src/console_cmds.cpp