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

Function HasGRFConfig

src/network/network_content.cpp:50–53  ·  view source on GitHub ↗

Wrapper function for the HasProc */

Source from the content-addressed store, hash-verified

48
49/** Wrapper function for the HasProc */
50static bool HasGRFConfig(const ContentInfo &ci, bool md5sum)
51{
52 return FindGRFConfig(std::byteswap(ci.unique_id), md5sum ? FGCM_EXACT : FGCM_ANY, md5sum ? &ci.md5sum : nullptr) != nullptr;
53}
54
55/**
56 * Check whether a function piece of content is locally known.

Callers

nothing calls this directly

Calls 2

FindGRFConfigFunction · 0.85
byteswapFunction · 0.85

Tested by

no test coverage detected