OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
36 uint32 map_size_x, map_size_y;
78 return this->checkable && this->error ==
INVALID_STRING_ID && this->grfconfig !=
nullptr;
96 class FileList :
public std::vector<FiosItem> {
111 extern SortingBits _savegame_sort_order;
bool checkable
True if the savegame could be checked by SL_LOAD_CHECK. (Old savegames are not checkable....
@ SLIWD_RESCAN_FILES
Rescan all files (when changed directory, ...)
struct LoggedAction * gamelog_action
Gamelog actions.
FiosNumberedSaveName(const std::string &prefix)
Constructs FiosNumberedSaveName.
SaveLoadOperation
Operation performed on the file.
LoadCheckData _load_check_data
Data loaded from save during SL_LOAD_CHECK.
GRFConfig * grfconfig
NewGrf configuration from save.
void FiosGetScenarioList(SaveLoadOperation fop, FileList &file_list)
Get a list of scenarios.
bool HasErrors()
Check whether loading the game resulted in errors.
void FiosGetHeightmapList(SaveLoadOperation fop, FileList &file_list)
Get a list of heightmaps.
StringID FiosGetDescText(const char **path, uint64 *total_free)
Get descriptive texts.
List of file information.
~LoadCheckData()
Don't leak memory at program exit.
AbstractFileType
The different abstract types of files that the system knows about.
Information about GRF, used in the game and (part of it) in savegames.
@ SLIWD_FILTER_CHANGES
The filename filter has changed (via the editbox)
char * error_data
Data to pass to SetDParamStr when displaying error.
uint gamelog_actions
Number of gamelog actions.
void BuildFileList(AbstractFileType abstract_filetype, SaveLoadOperation fop)
Construct a file list with the given kind of files, for the stated purpose.
int32 Date
The type to store our dates in.
std::string FiosMakeHeightmapName(const char *name)
Construct a filename for a height map.
Deals with finding savegames.
std::string FiosMakeSavegameName(const char *name)
Make a save game or scenario filename from a name.
const FiosItem * FindItem(const char *file)
Find file information of a file by its name from the file list.
All settings together for the game.
@ SLIWD_SELECTION_CHANGES
File selection has changed (user click, ...)
bool FiosDelete(const char *name)
Delete a file.
void ShowSaveLoadDialog(AbstractFileType abstract_filetype, SaveLoadOperation fop)
Launch save/load dialog in the given mode.
void FiosGetSavegameList(SaveLoadOperation fop, FileList &file_list)
Get a list of savegames.
StringID error
Error message from loading. INVALID_STRING_ID if no error.
Container for loading in mode SL_LOAD_CHECK.
CompanyPropertiesMap companies
Company information.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
A savegame name automatically numbered.
void Clear()
Reset read data.
GRFListCompatibility grf_compatibility
Summary state of NewGrfs, whether missing files or only compatible found.
FiosType
Elements of a file system that are recognized.
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
const char * FiosBrowseTo(const FiosItem *item)
Browse to a new path based on the passed item, starting at #_fios_path.
bool HasNewGrfs()
Check whether the game uses any NewGrfs.
std::string Extension()
Generate an extension for a savegame name.
SaveLoadInvalidateWindowData
Special values for save-load window for the data parameter of InvalidateWindowData.
std::string Filename()
Generate a savegame name and number according to _settings_client.gui.max_num_autosaves.
@ GLC_NOT_FOUND
At least one GRF couldn't be found (higher priority than GLC_COMPATIBLE)
GRFListCompatibility
Status of post-gameload GRF compatibility check.
Contains information about one logged action that caused at least one logged change.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
bool operator<(const FiosItem &other) const
Compare two FiosItem's.
FiosType FiosGetSavegameListCallback(SaveLoadOperation fop, const std::string &file, const char *ext, char *title, const char *last)
Callback for FiosGetFileList.