MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ValidateFileList

Method ValidateFileList

src/console_cmds.cpp:110–116  ·  view source on GitHub ↗

* (Re-)validate the file storage cache. Only makes a change if the storage was invalid, or if \a force_reload. * @param force_reload Always reload the file storage cache. */

Source from the content-addressed store, hash-verified

108 * @param force_reload Always reload the file storage cache.
109 */
110 void ValidateFileList(bool force_reload = false)
111 {
112 if (force_reload || !this->file_list_valid) {
113 this->BuildFileList(this->abstract_filetype, SLO_LOAD, this->show_dirs);
114 this->file_list_valid = true;
115 }
116 }
117
118 AbstractFileType abstract_filetype; ///< The abstract file type to list.
119 bool show_dirs; ///< Whether to show directories in the file list.

Callers 9

ConLoadFunction · 0.80
ConLoadScenarioFunction · 0.80
ConLoadHeightmapFunction · 0.80
ConRemoveFunction · 0.80
ConListFilesFunction · 0.80
ConListScenariosFunction · 0.80
ConListHeightmapsFunction · 0.80
ConChangeDirectoryFunction · 0.80
ConPrintWorkingDirectoryFunction · 0.80

Calls 1

BuildFileListMethod · 0.80

Tested by

no test coverage detected