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

Method Scan

src/fios.cpp:615–621  ·  view source on GitHub ↗

* Scan, but only if it's needed. * @param rescan whether to force scanning even when it's not necessary */

Source from the content-addressed store, hash-verified

613 * @param rescan whether to force scanning even when it's not necessary
614 */
615 void Scan(bool rescan)
616 {
617 if (this->scanned && !rescan) return;
618
619 this->FileScanner::Scan(".id", SCENARIO_DIR, true, true);
620 this->scanned = true;
621 }
622
623 bool AddFile(const std::string &filename, size_t, const std::string &) override
624 {

Callers 4

FiosGetFileListFunction · 0.45
FindScenarioFunction · 0.45
ScanScenariosFunction · 0.45
FiosNumberedSaveNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected