* Update the NewGRF scan status. * @param num The number of NewGRFs scanned so far. * @param name The name of the last scanned NewGRF. */
| 2218 | * @param name The name of the last scanned NewGRF. |
| 2219 | */ |
| 2220 | void UpdateNewGRFScanStatus(uint num, std::string &&name) |
| 2221 | { |
| 2222 | ScanProgressWindow *w = dynamic_cast<ScanProgressWindow *>(FindWindowByClass(WC_MODAL_PROGRESS)); |
| 2223 | if (w == nullptr) w = new ScanProgressWindow(); |
| 2224 | w->UpdateNewGRFScanStatus(num, std::move(name)); |
| 2225 | } |
no test coverage detected