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

Method DoScan

src/fileio.cpp:377–384  ·  view source on GitHub ↗

* Perform the scanning of a particular subdirectory. * @param sd The subdirectory to scan. * @return The number of found tar files. */

Source from the content-addressed store, hash-verified

375 * @return The number of found tar files.
376 */
377uint TarScanner::DoScan(Subdirectory sd)
378{
379 _tar_filelist[sd].clear();
380 _tar_list[sd].clear();
381 uint num = this->Scan(".tar", sd, false);
382 if (sd == BASESET_DIR || sd == NEWGRF_DIR) num += this->Scan(".tar", OLD_DATA_DIR, false);
383 return num;
384}
385
386/* static */ uint TarScanner::DoScan(TarScanner::Modes modes)
387{

Callers

nothing calls this directly

Calls 3

TestMethod · 0.80
clearMethod · 0.45
ScanMethod · 0.45

Tested by

no test coverage detected