Home
last modified time | relevance | path

Searched refs:grfconfig (Results 1 – 17 of 17) sorted by relevance

/dports/games/openttd/openttd-12.1/src/saveload/
H A Dnewgrf_sl.cpp91 void LoadCommon(GRFConfig *&grfconfig) const in LoadCommon()
95 ClearGRFConfigList(&grfconfig); in LoadCommon()
100 AppendToGRFConfigList(&grfconfig, c); in LoadCommon()
122 this->LoadCommon(_load_check_data.grfconfig); in LoadCheck()
H A Dsaveload.cpp3198 _load_check_data.grf_compatibility = IsGoodGRFConfigList(_load_check_data.grfconfig); in DoLoad()
/dports/games/openttd/openttd-12.1/src/
H A Dfios.h43 GRFConfig *grfconfig; ///< NewGrf configuration from save. member
49 LoadCheckData() : error_data(nullptr), grfconfig(nullptr), in LoadCheckData()
78 return this->checkable && this->error == INVALID_STRING_ID && this->grfconfig != nullptr; in HasNewGrfs()
H A Dnewgrf.cpp453 config = _cur.grfconfig; in DisableGrf()
4804 if (grfconfig != nullptr && !HasBit(grfconfig->flags, GCF_STATIC)) { in SafeChangeInfo()
6898 delete _cur.grfconfig->error; in GRFLoadError()
6946 _cur.grfconfig->error = error; in GRFLoadError()
7832 AddGRFTextToList(_cur.grfconfig->name, langid, _cur.grfconfig->ident.grfid, false, str); in ChangeGRFName()
7839 AddGRFTextToList(_cur.grfconfig->info, langid, _cur.grfconfig->ident.grfid, true, str); in ChangeGRFDescription()
7846 AddGRFTextToList(_cur.grfconfig->url, langid, _cur.grfconfig->ident.grfid, false, str); in ChangeGRFURL()
7918 _cur.grfconfig->version = _cur.grfconfig->min_loadable_version = buf->ReadDWord(); in ChangeGRFVersion()
7935 if (_cur.grfconfig->version < _cur.grfconfig->min_loadable_version) { in ChangeGRFMinVersion()
7937 _cur.grfconfig->min_loadable_version = _cur.grfconfig->version; in ChangeGRFMinVersion()
[all …]
H A Dnewgrf_commons.cpp518 GRFConfig *grfconfig = GetGRFConfig(grfid); in ErrorUnknownCallbackResult() local
520 if (!HasBit(grfconfig->grf_bugs, GBUG_UNKNOWN_CB_RESULT)) { in ErrorUnknownCallbackResult()
521 SetBit(grfconfig->grf_bugs, GBUG_UNKNOWN_CB_RESULT); in ErrorUnknownCallbackResult()
522 SetDParamStr(0, grfconfig->GetName()); in ErrorUnknownCallbackResult()
531 SetDParamStr(0, grfconfig->GetName()); in ErrorUnknownCallbackResult()
H A Dfios_gui.cpp67 ClearGRFConfigList(&this->grfconfig); in Clear()
523 SetDParam(0, _load_check_data.grfconfig == nullptr ? STR_NEWGRF_LIST_NONE : in DrawWidget()
633 ShowNewGRFSettings(false, false, false, &_load_check_data.grfconfig); in OnClick()
641 ShowMissingContentWindow(_load_check_data.grfconfig); in OnClick()
H A Dnewgrf_config.h230 GRFListCompatibility IsGoodGRFConfigList(GRFConfig *grfconfig);
H A Dvehicle.cpp300 GRFConfig *grfconfig = GetGRFConfig(e->GetGRFID()); in ShowNewGrfVehicleError() local
303 if (grfconfig == nullptr) return; in ShowNewGrfVehicleError()
305 if (!HasBit(grfconfig->grf_bugs, bug_type)) { in ShowNewGrfVehicleError()
306 SetBit(grfconfig->grf_bugs, bug_type); in ShowNewGrfVehicleError()
307 SetDParamStr(0, grfconfig->GetName()); in ShowNewGrfVehicleError()
316 SetDParamStr(0, grfconfig->GetName()); in ShowNewGrfVehicleError()
335 GRFConfig *grfconfig = GetGRFConfig(grfid); in VehicleLengthChanged() local
336 …if (GamelogGRFBugReverse(grfid, engine->grf_prop.local_id) || !HasBit(grfconfig->grf_bugs, GBUG_VE… in VehicleLengthChanged()
H A Dnewgrf_config.cpp513 GRFListCompatibility IsGoodGRFConfigList(GRFConfig *grfconfig) in IsGoodGRFConfigList() argument
517 for (GRFConfig *c = grfconfig; c != nullptr; c = c->next) { in IsGoodGRFConfigList()
H A Dopenttd.cpp266 for (GRFConfig *c = _load_check_data.grfconfig; c != nullptr; c = c->next) { in WriteSavegameInfo()
/dports/games/openttd/openttd-12.1/src/network/
H A Dnetwork_gamelist.cpp76 ClearGRFConfigList(&remove->info.grfconfig); in NetworkGameListRemoveItem()
103 ClearGRFConfigList(&remove->info.grfconfig); in NetworkGameListRemoveExpired()
124 for (GRFConfig *c = item->info.grfconfig; c != nullptr; c = c->next) { in NetworkAfterNewGRFScan()
H A Dnetwork_query.cpp105 ClearGRFConfigList(&item->info.grfconfig); in Receive_SERVER_GAME_INFO()
H A Dnetwork_gui.cpp619 …>SetDisplayedPlane(sel == nullptr || sel->status != NGLS_ONLINE || sel->info.grfconfig == nullptr); in OnPaint()
620 …isplayedPlane(sel == nullptr || sel->status != NGLS_ONLINE || sel->info.grfconfig == nullptr || !s… in OnPaint()
800 …f (this->server != nullptr) ShowNewGRFSettings(false, false, false, &this->server->info.grfconfig); in OnClick()
804 if (this->server != nullptr) ShowMissingContentWindow(this->server->info.grfconfig); in OnClick()
H A Dnetwork_coordinator.cpp254 ClearGRFConfigList(&item->info.grfconfig); in Receive_GC_LISTING()
H A Dnetwork.cpp680 ClearGRFConfigList(&item->info.grfconfig); in NetworkAddServer()
/dports/games/openttd/openttd-12.1/src/network/core/
H A Dgame_info.cpp114 for (const GRFConfig *c = ngi.grfconfig; c != nullptr; c = c->next) { in CheckGameCompatibility()
133 _network_game_info.grfconfig = _grfconfig; in FillStaticNetworkServerGameInfo()
215 for (c = info->grfconfig; c != nullptr; c = c->next) { in SerializeNetworkGameInfo()
221 for (c = info->grfconfig; c != nullptr; c = c->next) { in SerializeNetworkGameInfo()
284 GRFConfig **dst = &info->grfconfig; in DeserializeNetworkGameInfo()
H A Dgame_info.h94 GRFConfig *grfconfig; ///< List of NewGRF files used member