(svn r23222) -Codechange: reduce tar scanning calls to the bare minimum

This commit is contained in:
rubidium
2011-11-14 21:40:39 +00:00
parent 387e410f3e
commit 4ae8bbea07
6 changed files with 12 additions and 8 deletions

View File

@@ -621,7 +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);
TarScanner::DoScan(TarScanner::BASESET);
BaseGraphics::FindSets();
BaseSounds::FindSets();
BaseMusic::FindSets();
@@ -636,7 +636,7 @@ int ttd_main(int argc, char *argv[])
#endif
DeterminePaths(argv[0]);
TarScanner::DoScan(TarScanner::ALL);
TarScanner::DoScan(TarScanner::BASESET | TarScanner::SCENARIO);
BaseGraphics::FindSets();
BaseSounds::FindSets();
BaseMusic::FindSets();