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

Function HasScenario

src/fios.cpp:684–687  ·  view source on GitHub ↗

* Check whether we've got a given scenario based on its unique ID. * @param ci The content info to compare it to. * @param md5sum Whether to look at the md5sum or the id. * @return True iff we've got the scenario. */

Source from the content-addressed store, hash-verified

682 * @return True iff we've got the scenario.
683 */
684bool HasScenario(const ContentInfo &ci, bool md5sum)
685{
686 return FindScenario(ci, md5sum).has_value();
687}
688
689/**
690 * Force a (re)scan of the scenarios.

Callers

nothing calls this directly

Calls 1

FindScenarioFunction · 0.85

Tested by

no test coverage detected