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;
122 return &this->
files.emplace_back();
131 return this->
files.size();
140 return this->
files.data();
158 return this->
files.data() + index;
167 return this->
files.data() + index;
170 inline const FiosItem &operator[](
size_t index)
const
172 return this->
files[index];
181 return this->
files[index];
193 this->
files.shrink_to_fit();
211 extern SortingBits _savegame_sort_order;
bool checkable
True if the savegame could be checked by SL_LOAD_CHECK. (Old savegames are not checkable....
const FiosItem * End() const
Get a pointer behind the last file information.
@ SLIWD_RESCAN_FILES
Rescan all files (when changed directory, ...)
void Compact()
Compact the list down to the smallest block size boundary.
struct LoggedAction * gamelog_action
Gamelog actions.
SaveLoadOperation
Operation performed on the file.
LoadCheckData _load_check_data
Data loaded from save during SL_LOAD_CHECK.
@ FIRST_GRF_SLOT
First slot usable for (New)GRFs used during the game.
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.
void Clear()
Remove all items from the list.
FiosItem * Get(size_t index)
Get a pointer to the indicated 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.
const FiosItem * Get(size_t index) const
Get a pointer to the indicated file information.
@ CONFIG_SLOT
Slot used for the GRF scanning and such.
@ 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.
std::vector< FiosItem > files
The list of files.
@ MAX_FILE_SLOTS
Maximum number of slots.
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.
FiosItem * Append()
Construct a new entry in the file list.
StringID error
Error message from loading. INVALID_STRING_ID if no error.
Container for loading in mode SL_LOAD_CHECK.
CompanyPropertiesMap companies
Company information.
FiosItem & operator[](size_t index)
Get a reference to the indicated file information.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
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.
@ SOUND_SLOT
Slot for the sound.
bool HasNewGrfs()
Check whether the game uses any NewGrfs.
const FiosItem * Begin() const
Get a pointer to the first file information.
SaveLoadInvalidateWindowData
Special values for save-load window for the data parameter of InvalidateWindowData.
@ 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)
size_t Length() const
Get the number of files in the list.
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.