OpenTTD Source 20241224-master-gf74b0cf984
|
Basic data to distinguish a GRF. More...
#include <newgrf_config.h>
Public Member Functions | |
GRFIdentifier (const GRFIdentifier &other)=default | |
GRFIdentifier (GRFIdentifier &&other)=default | |
GRFIdentifier (uint32_t grfid, const MD5Hash &md5sum) | |
GRFIdentifier & | operator= (const GRFIdentifier &other)=default |
bool | HasGrfIdentifier (uint32_t grfid, const MD5Hash *md5sum) const |
Does the identification match the provided values? | |
Data Fields | |
uint32_t | grfid |
GRF ID (defined by Action 0x08) | |
MD5Hash | md5sum |
MD5 checksum of file to distinguish files with the same GRF ID (eg. newer version of GRF) | |
Basic data to distinguish a GRF.
Used in the server list window
Definition at line 82 of file newgrf_config.h.
|
inline |
Definition at line 89 of file newgrf_config.h.
|
inline |
Does the identification match the provided values?
grfid | Expected grfid. |
md5sum | Expected md5sum, may be nullptr (in which case, do not check it). |
Definition at line 99 of file newgrf_config.h.
uint32_t GRFIdentifier::grfid |
GRF ID (defined by Action 0x08)
Definition at line 83 of file newgrf_config.h.
Referenced by GRFFileScanner::AddFile(), ChangeGRFDescription(), ChangeGRFName(), ChangeGRFParamDescription(), ChangeGRFParamName(), ChangeGRFParamValueNames(), ChangeGRFURL(), FillGRFDetails(), FillGrfidMap(), GetGRFConfig(), Gamelog::GetOverriddenIdentifier(), GRFFile::GRFFile(), GRFLoadConfig(), Gamelog::GRFUpdate(), HasGrfIdentifier(), IsGoodGRFConfigList(), LoadNewGRF(), NewGRFWindow::OnInvalidateData(), ClientNetworkGameSocketHandler::Receive_SERVER_CHECK_NEWGRFS(), RemoveDuplicatesFromGRFConfigList(), and ShowMissingContentWindow().
MD5Hash GRFIdentifier::md5sum |
MD5 checksum of file to distinguish files with the same GRF ID (eg. newer version of GRF)
Definition at line 84 of file newgrf_config.h.
Referenced by GRFFileScanner::AddFile(), CalcGRFMD5Sum(), Gamelog::GRFUpdate(), HandleSavegameLoadCrash(), HasGrfIdentifier(), IsGoodGRFConfigList(), NewGRFWindow::NameSorter(), NewGRFWindow::OnInvalidateData(), ClientNetworkGameSocketHandler::Receive_SERVER_CHECK_NEWGRFS(), and ShowMissingContentWindow().