MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateNewGRFScanStatus

Function UpdateNewGRFScanStatus

src/newgrf_gui.cpp:2220–2225  ·  view source on GitHub ↗

* Update the NewGRF scan status. * @param num The number of NewGRFs scanned so far. * @param name The name of the last scanned NewGRF. */

Source from the content-addressed store, hash-verified

2218 * @param name The name of the last scanned NewGRF.
2219 */
2220void 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}

Callers 1

AddFileMethod · 0.85

Calls 2

FindWindowByClassFunction · 0.85

Tested by

no test coverage detected