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

Method UpdateNewGRFScanStatus

src/newgrf_gui.cpp:2205–2212  ·  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

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/**

Callers 1

UpdateNewGRFScanStatusFunction · 0.80

Calls 1

SetDirtyMethod · 0.45

Tested by

no test coverage detected