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

Function AppendToGRFConfigList

src/newgrf_config.cpp:399–403  ·  view source on GitHub ↗

* Appends an element to a list of GRFs * @param dst the head of the list to add to * @param el the new tail to be */

Source from the content-addressed store, hash-verified

397 * @param el the new tail to be
398 */
399void AppendToGRFConfigList(GRFConfigList &dst, std::unique_ptr<GRFConfig> &&el)
400{
401 dst.push_back(std::move(el));
402 RemoveDuplicatesFromGRFConfigList(dst);
403}
404
405
406/** Reset the current GRF Config to either blank or newgame settings. */

Callers 2

LoadTTDPatchExtraChunksFunction · 0.85
LoadCommonMethod · 0.85

Calls 2

push_backMethod · 0.80

Tested by

no test coverage detected