| 232 | } |
| 233 | |
| 234 | static void validate_materials_config(color_ostream &out, bool verbose = false) { |
| 235 | if (config.get_bool(CONFIG_BLOCKS) |
| 236 | || config.get_bool(CONFIG_BOULDERS) |
| 237 | || config.get_bool(CONFIG_LOGS) |
| 238 | || config.get_bool(CONFIG_BARS)) |
| 239 | return; |
| 240 | |
| 241 | if (verbose) |
| 242 | out.printerr("all contruction materials disabled; resetting config\n"); |
| 243 | |
| 244 | config.set_bool(CONFIG_BLOCKS, true); |
| 245 | config.set_bool(CONFIG_BOULDERS, true); |
| 246 | config.set_bool(CONFIG_LOGS, true); |
| 247 | config.set_bool(CONFIG_BARS, false); |
| 248 | } |
| 249 | |
| 250 | static void reset_filters(color_ostream &out) { |
| 251 | cur_heat_safety.clear(); |
no outgoing calls
no test coverage detected