MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / process

Method process

Descent3/config.cpp:1274–1293  ·  view source on GitHub ↗

process output and do stuff accordintly

Source from the content-addressed store, hash-verified

1272
1273 // process output and do stuff accordintly
1274 void process(int res) {
1275 bool changed;
1276
1277 // check here if the detail level currently set should be custom
1278 changed = sheet->HasChanged(specmap) || sheet->HasChanged(headlight) || sheet->HasChanged(mirror) ||
1279 sheet->HasChanged(dynamic) || sheet->HasChanged(fog) || sheet->HasChanged(coronas) ||
1280 sheet->HasChanged(procedurals) || sheet->HasChanged(powerup_halo) || sheet->HasChanged(scorches) ||
1281 sheet->HasChanged(weapon_coronas) || sheet->HasChanged(objcomp) || sheet->HasChanged(pixel_err) ||
1282 sheet->HasChanged(rend_dist);
1283
1284 if (changed) {
1285 // enable custom radio button
1286 *detail_level = DETAIL_LEVEL_CUSTOM;
1287 } else {
1288 // check if any preset detail has been selected.
1289 if (sheet->HasChanged(detail_level)) {
1290 set_preset_details(*detail_level);
1291 }
1292 }
1293 };
1294
1295 // sets detail presets
1296 void set_preset_details(int setting);

Callers

nothing calls this directly

Calls 1

HasChangedMethod · 0.80

Tested by

no test coverage detected