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

Function SurveyGameScript

src/survey.cpp:386–391  ·  view source on GitHub ↗

* Convert game-script information to JSON. * * @param survey The JSON object. */

Source from the content-addressed store, hash-verified

384 * @param survey The JSON object.
385 */
386void SurveyGameScript(nlohmann::json &survey)
387{
388 if (Game::GetInfo() == nullptr) return;
389
390 survey = fmt::format("{}.{}", Game::GetInfo()->GetName(), Game::GetInfo()->GetVersion());
391}
392
393/**
394 * Convert compiled libraries information to JSON.

Callers 2

FillCrashLogMethod · 0.85
CreatePayloadMethod · 0.85

Calls 3

formatFunction · 0.50
GetNameMethod · 0.45
GetVersionMethod · 0.45

Tested by

no test coverage detected