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

Function FiosGetSavegameList

src/fios.cpp:421–430  ·  view source on GitHub ↗

* Get a list of savegames. * @param fop Purpose of collecting the list. * @param show_dirs Whether to show directories. * @param file_list Destination of the found files. * @see FiosGetFileList */

Source from the content-addressed store, hash-verified

419 * @see FiosGetFileList
420 */
421void FiosGetSavegameList(SaveLoadOperation fop, bool show_dirs, FileList &file_list)
422{
423 static std::optional<std::string> fios_save_path;
424
425 if (!fios_save_path) fios_save_path = FioFindDirectory(SAVE_DIR);
426
427 _fios_path = &(*fios_save_path);
428
429 FiosGetFileList(fop, show_dirs, &FiosGetSavegameListCallback, NO_DIRECTORY, file_list);
430}
431
432/**
433 * Callback for FiosGetFileList. It tells if a file is a scenario or not.

Callers 1

BuildFileListMethod · 0.85

Calls 2

FioFindDirectoryFunction · 0.85
FiosGetFileListFunction · 0.85

Tested by

no test coverage detected