OpenTTD Source  20241108-master-g80f628063a
LoadCheckData Struct Reference

Container for loading in mode SL_LOAD_CHECK. More...

#include <fios.h>

Public Member Functions

bool HasErrors ()
 Check whether loading the game resulted in errors. More...
 
bool HasNewGrfs ()
 Check whether the game uses any NewGrfs. More...
 
void Clear ()
 Reset read data.
 

Data Fields

bool checkable
 True if the savegame could be checked by SL_LOAD_CHECK. (Old savegames are not checkable.)
 
StringID error
 Error message from loading. INVALID_STRING_ID if no error.
 
std::string error_msg
 Data to pass to SetDParamStr when displaying error.
 
uint32_t map_size_x
 
uint32_t map_size_y
 
TimerGameCalendar::Date current_date
 
GameSettings settings
 
CompanyPropertiesMap companies
 Company information.
 
GRFConfiggrfconfig
 NewGrf configuration from save.
 
GRFListCompatibility grf_compatibility
 Summary state of NewGrfs, whether missing files or only compatible found.
 
Gamelog gamelog
 Gamelog actions.
 

Detailed Description

Container for loading in mode SL_LOAD_CHECK.

Definition at line 33 of file fios.h.

Member Function Documentation

◆ HasErrors()

bool LoadCheckData::HasErrors ( )
inline

Check whether loading the game resulted in errors.

Returns
true if errors were encountered.

Definition at line 59 of file fios.h.

References INVALID_STRING_ID.

◆ HasNewGrfs()

bool LoadCheckData::HasNewGrfs ( )
inline

Check whether the game uses any NewGrfs.

Returns
true if NewGrfs are used.

Definition at line 68 of file fios.h.

References INVALID_STRING_ID.


The documentation for this struct was generated from the following files: