summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-14 21:30:37 +0000
committerrubidium <rubidium@openttd.org>2011-11-14 21:30:37 +0000
commit6d991b3b10bad798f7e2afce1bc806dbdc3ced4b (patch)
tree49c462606a07d3243d66abb82b7467204753b705 /src/openttd.cpp
parent160294ff22a2b30fc75be1977117eac6910bdd82 (diff)
downloadopenttd-6d991b3b10bad798f7e2afce1bc806dbdc3ced4b.tar.xz
(svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 4a248e7fc..c82d7d823 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -200,7 +200,6 @@ static void ShowHelp()
p = BlitterFactoryBase::GetBlittersInfo(p, lastof(buf));
/* We need to initialize the AI, so it finds the AIs */
- TarScanner::DoScan();
AI::Initialize();
p = AI::GetConsoleList(p, lastof(buf), true);
AI::Uninitialize(true);
@@ -622,6 +621,7 @@ int ttd_main(int argc, char *argv[])
* The next two functions are needed to list the graphics sets. We can't do them earlier
* because then we cannot show it on the debug console as that hasn't been configured yet. */
DeterminePaths(argv[0]);
+ TarScanner::DoScan(TarScanner::AI | TarScanner::BASESET);
BaseGraphics::FindSets();
BaseSounds::FindSets();
BaseMusic::FindSets();
@@ -636,6 +636,7 @@ int ttd_main(int argc, char *argv[])
#endif
DeterminePaths(argv[0]);
+ TarScanner::DoScan(TarScanner::ALL);
BaseGraphics::FindSets();
BaseSounds::FindSets();
BaseMusic::FindSets();
@@ -650,7 +651,6 @@ int ttd_main(int argc, char *argv[])
#endif
#endif
- TarScanner::DoScan();
AI::Initialize();
LoadFromConfig();
AI::Uninitialize(true);