MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetGRFFile

Method SetGRFFile

src/newgrf_commons.cpp:735–739  ·  view source on GitHub ↗

* Set the NewGRF file, and its grfid, associated with grf props. * @param grffile GRFFile to set. */

Source from the content-addressed store, hash-verified

733 * @param grffile GRFFile to set.
734 */
735void GRFFilePropsBase::SetGRFFile(const struct GRFFile *grffile)
736{
737 this->grffile = grffile;
738 this->grfid = grffile == nullptr ? 0 : grffile->grfid;
739}

Callers 10

GetNewEngineFunction · 0.80
SetEngineGRFFunction · 0.80
IndustrytilesChangeInfoFunction · 0.80
IndustriesChangeInfoFunction · 0.80
TownHouseChangeInfoFunction · 0.80
AirportChangeInfoFunction · 0.80
AirportTilesChangeInfoFunction · 0.80
MapDefaultMethod · 0.80
MapDefaultMethod · 0.80
MapDefaultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected