| 403 | } |
| 404 | |
| 405 | void GraphicsSet::CopyCompatibleConfig(const GraphicsSet &src) |
| 406 | { |
| 407 | const GRFConfig *src_cfg = src.GetExtraConfig(); |
| 408 | if (src_cfg == nullptr || src_cfg->param.empty()) return; |
| 409 | GRFConfig &dest_cfg = this->GetOrCreateExtraConfig(); |
| 410 | if (dest_cfg.IsCompatible(src_cfg->version)) return; |
| 411 | dest_cfg.CopyParams(*src_cfg); |
| 412 | } |
| 413 | |
| 414 | /** |
| 415 | * Calculate and check the MD5 hash of the supplied GRF. |
no test coverage detected