summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_scanner.cpp1
-rw-r--r--src/newgrf_config.cpp2
-rw-r--r--src/tar_type.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index 9d689a815..d404270d9 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -25,6 +25,7 @@
void AIScanner::RescanAIDir()
{
+ TarScanner::DoScan();
this->ScanScriptDir("info.nut", AI_DIR);
this->ScanScriptDir("library.nut", AI_LIBRARY_DIR);
}
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 6807a5d5d..b12c688aa 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -549,6 +549,8 @@ void ScanNewGRFFiles()
{
ClearGRFConfigList(&_all_grfs);
+ TarScanner::DoScan();
+
DEBUG(grf, 1, "Scanning for NewGRFs");
uint num = GRFFileScanner::DoScan();
diff --git a/src/tar_type.h b/src/tar_type.h
index 335b646d0..272ae5da4 100644
--- a/src/tar_type.h
+++ b/src/tar_type.h
@@ -40,7 +40,4 @@ extern TarFileList _tar_filelist;
#define FOR_ALL_TARS(tar) for (tar = _tar_filelist.begin(); tar != _tar_filelist.end(); tar++)
-typedef bool FioTarFileListCallback(const char *filename, int size, void *userdata);
-FILE *FioTarFileList(const char *tar, const char *mode, size_t *filesize, FioTarFileListCallback *callback, void *userdata);
-
#endif /* TAR_TYPE_H */