summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileio.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index c7f14f18f..e93685091 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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;
}