()
| 23 | let extra_config = load_extra_config(); |
| 24 | self.set_cg(extra_config.cg()); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | fn load_extra_config() -> ExtraConfig { |
| 29 | if let Ok(content) = fs::read_to_string(format!("{}/extra.toml", ENGINE_CONFIG.save_path())) { |
| 30 | toml::from_str(&content).unwrap() |
| 31 | } else { |