| 571 | } |
| 572 | |
| 573 | static bool setSetting(color_ostream &out, string name, bool value) { |
| 574 | DEBUG(control,out).print("entering setSetting ({} -> {})\n", name, value ? "true" : "false"); |
| 575 | if (name == "blocks") |
| 576 | config.set_bool(CONFIG_BLOCKS, value); |
| 577 | else if (name == "boulders") |
| 578 | config.set_bool(CONFIG_BOULDERS, value); |
| 579 | else if (name == "logs") |
| 580 | config.set_bool(CONFIG_LOGS, value); |
| 581 | else if (name == "bars") |
| 582 | config.set_bool(CONFIG_BARS, value); |
| 583 | else if (name == "reconstruct") |
| 584 | config.set_bool(CONFIG_RECONSTRUCT, value); |
| 585 | else { |
| 586 | out.printerr("unrecognized setting: '{}'\n", name); |
| 587 | return false; |
| 588 | } |
| 589 | |
| 590 | validate_materials_config(out, true); |
| 591 | Lua::CallLuaModuleFunction(out, "plugins.buildingplan", "signal_reset"); |
| 592 | return true; |
| 593 | } |
| 594 | |
| 595 | static void resetFilters(color_ostream &out) { |
| 596 | DEBUG(control,out).print("entering resetFilters\n"); |
nothing calls this directly
no test coverage detected