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

Function GetBasesetExtraGRFConfig

src/gfxinit.cpp:163–169  ·  view source on GitHub ↗

* Get GRFConfig for the baseset extra graphics. * @return Managed pointer to baseset extra GRFConfig. */

Source from the content-addressed store, hash-verified

161 * @return Managed pointer to baseset extra GRFConfig.
162 */
163static std::unique_ptr<GRFConfig> GetBasesetExtraGRFConfig()
164{
165 auto gc = std::make_unique<GRFConfig>(BaseGraphics::GetUsedSet()->GetOrCreateExtraConfig());
166 if (gc->param.empty()) gc->SetParameterDefaults();
167 gc->flags.Reset(GRFConfigFlag::InitOnly);
168 return gc;
169}
170
171/** Actually load the sprite tables. */
172static void LoadSpriteTables()

Callers 1

LoadSpriteTablesFunction · 0.85

Calls 3

SetParameterDefaultsMethod · 0.80
emptyMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected