* Convert settings to JSON. * * @param survey The JSON object. */
| 162 | * @param survey The JSON object. |
| 163 | */ |
| 164 | void 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. |
no test coverage detected