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

Function SurveySettings

src/survey.cpp:164–175  ·  view source on GitHub ↗

* Convert settings to JSON. * * @param survey The JSON object. */

Source from the content-addressed store, hash-verified

162 * @param survey The JSON object.
163 */
164void SurveySettings(nlohmann::json &survey, bool skip_if_default)
165{
166 SurveySettingsTable(survey, _misc_settings, nullptr, skip_if_default);
167#if defined(_WIN32) && !defined(DEDICATED)
168 SurveySettingsTable(survey, _win32_settings, nullptr, skip_if_default);
169#endif
170 for (auto &table : GenericSettingTables()) {
171 SurveySettingsTable(survey, table, &_settings_game, skip_if_default);
172 }
173 SurveySettingsTable(survey, _currency_settings, &GetCustomCurrency(), skip_if_default);
174 SurveySettingsTable(survey, _company_settings, &_settings_client.company, skip_if_default);
175}
176
177/**
178 * Convert compiler information to JSON.

Callers 2

FillCrashLogMethod · 0.85
CreatePayloadMethod · 0.85

Calls 1

SurveySettingsTableFunction · 0.85

Tested by

no test coverage detected