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

Method HasNewGrfs

src/fios.h:67–70  ·  view source on GitHub ↗

* Check whether the game uses any NewGrfs. * @return true if NewGrfs are used. */

Source from the content-addressed store, hash-verified

65 * @return true if NewGrfs are used.
66 */
67 bool HasNewGrfs()
68 {
69 return this->checkable && this->error == INVALID_STRING_ID && !this->grfconfig.empty();
70 }
71
72 void Clear();
73};

Callers 3

OnClickMethod · 0.80
OnInvalidateDataMethod · 0.80
WriteSavegameInfoFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected