31 uint32 map_size_x, map_size_y;
45 grf_compatibility(
GLC_NOT_FOUND), gamelog_action(NULL), gamelog_actions(0)
73 return this->checkable && this->error ==
INVALID_STRING_ID && this->grfconfig != NULL;
116 return this->files.Append();
125 return this->files.Length();
134 return this->files.Begin();
143 return this->files.End();
152 return this->files.Get(index);
161 return this->files.Get(index);
164 inline const FiosItem &operator[](uint index)
const 166 return this->files[index];
175 return this->files[index];
187 this->files.Compact();
191 const FiosItem *FindItem(
const char *file);
205 extern SortingBits _savegame_sort_order;
FiosType
Elements of a file system that are recognized.
AbstractFileType
The different abstract types of files that the system knows about.
First slot usable for (New)GRFs used during the game.
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
Definition of stuff that is very close to a company, like the company struct itself.
void FiosMakeHeightmapName(char *buf, const char *name, const char *last)
Construct a filename for a height map.
Container for loading in mode SL_LOAD_CHECK.
void Clear()
Remove all items from the list.
All settings together for the game.
struct LoggedAction * gamelog_action
Gamelog actions.
void FiosGetSavegameList(SaveLoadOperation fop, FileList &file_list)
Get a list of savegames.
GRFConfig * grfconfig
NewGrf configuration from save.
const FiosItem * Begin() const
Get a pointer to the first file information.
void FiosMakeSavegameName(char *buf, const char *name, const char *last)
Make a save game or scenario filename from a name.
Slot used for the GRF scanning and such.
bool FiosDelete(const char *name)
Delete a file.
Deals with finding savegames.
SmallVector< FiosItem, 32 > files
The list of files.
bool checkable
True if the savegame could be checked by SL_LOAD_CHECK. (Old savegames are not checkable.)
LoadCheckData _load_check_data
Data loaded from save during SL_LOAD_CHECK.
uint Length() const
Get the number of files in the list.
const FiosItem * End() const
Get a pointer behind the last file information.
void FiosGetScenarioList(SaveLoadOperation fop, FileList &file_list)
Get a list of scenarios.
Contains information about one logged action that caused at least one logged change.
Information about GRF, used in the game and (part of it) in savegames.
StringID FiosGetDescText(const char **path, uint64 *total_free)
Get descriptive texts.
CompanyPropertiesMap companies
Company information.
const char * FiosBrowseTo(const FiosItem *item)
Browse to a new path based on the passed item, starting at #_fios_path.
void Clear()
Reset read data.
int CDECL CompareFiosItems(const FiosItem *a, const FiosItem *b)
Compare two FiosItem's.
char * error_data
Data to pass to SetDParamStr when displaying error.
const FiosItem * Get(uint index) const
Get a pointer to the indicated file information.
bool HasErrors()
Check whether loading the game resulted in errors.
Basic functions to receive and send TCP packets to/from the content server.
StringID error
Error message from loading. INVALID_STRING_ID if no error.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
SaveLoadOperation
Operation performed on the file.
void FiosGetHeightmapList(SaveLoadOperation fop, FileList &file_list)
Get a list of heightmaps.
Functions to find and configure NewGRFs.
void Compact()
Compact the list down to the smallest block size boundary.
void ShowSaveLoadDialog(AbstractFileType abstract_filetype, SaveLoadOperation fop)
Launch save/load dialog in the given mode.
GRFListCompatibility
Status of post-gameload GRF compatibility check.
List of file information.
At least one GRF couldn't be found (higher priority than GLC_COMPATIBLE)
FiosItem & operator[](uint index)
Get a reference to the indicated file information.
uint gamelog_actions
Number of gamelog actions.
~LoadCheckData()
Don't leak memory at program exit.
FiosItem * Get(uint index)
Get a pointer to the indicated file information.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
int32 Date
The type to store our dates in.
bool HasNewGrfs()
Check whether the game uses any NewGrfs.
FiosItem * Append()
Construct a new entry in the file list.
GRFListCompatibility grf_compatibility
Summary state of NewGrfs, whether missing files or only compatible found.
Types related to the graphics and/or input devices.
FiosType FiosGetSavegameListCallback(SaveLoadOperation fop, const char *file, const char *ext, char *title, const char *last)
Callback for FiosGetFileList.