* Update the NewGRF scan status. * @param num The number of NewGRFs scanned so far. * @param name The name of the last scanned NewGRF. */
| 2203 | * @param name The name of the last scanned NewGRF. |
| 2204 | */ |
| 2205 | void UpdateNewGRFScanStatus(uint num, std::string &&name) |
| 2206 | { |
| 2207 | this->last_name = std::move(name); |
| 2208 | this->scanned = num; |
| 2209 | if (num > _settings_client.gui.last_newgrf_count) _settings_client.gui.last_newgrf_count = num; |
| 2210 | |
| 2211 | this->SetDirty(); |
| 2212 | } |
| 2213 | }; |
| 2214 | |
| 2215 | /** |
no test coverage detected