mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 00:34:27 +00:00
(svn r23227) -Fix (r23219): The FileScanner should also consider the old directories.
This commit is contained in:
parent
52d3be2e05
commit
7b86e3e109
@ -1375,6 +1375,18 @@ uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars, bool r
|
||||
}
|
||||
}
|
||||
|
||||
switch (sd) {
|
||||
case BASESET_DIR:
|
||||
num += this->Scan(extension, OLD_GM_DIR, tars, recursive);
|
||||
break;
|
||||
|
||||
case NEWGRF_DIR:
|
||||
num += this->Scan(extension, OLD_DATA_DIR, tars, recursive);
|
||||
break;
|
||||
|
||||
default: break;
|
||||
}
|
||||
|
||||
return num;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user