summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-14 21:32:10 +0000
committerrubidium <rubidium@openttd.org>2011-11-14 21:32:10 +0000
commit9e7174e5406cf59a7f0ae79c6dc280b1958ef95d (patch)
treea3dc4a3a57c6c403051ab91d56943ba9663ab6e9
parent6d991b3b10bad798f7e2afce1bc806dbdc3ced4b (diff)
downloadopenttd-9e7174e5406cf59a7f0ae79c6dc280b1958ef95d.tar.xz
(svn r23218) -Codechange: prepare code for a separate base set directory
-rw-r--r--src/fileio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 2722b651d..e3bbb45eb 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -651,6 +651,7 @@ uint TarScanner::DoScan(Subdirectory sd)
TarScanner fs;
uint num = 0;
if (mode & (TarScanner::BASESET | TarScanner::NEWGRF)) {
+ num += fs.DoScan(BASESET_DIR);
num += fs.DoScan(NEWGRF_DIR);
}
if (mode & TarScanner::AI) {
@@ -1180,7 +1181,7 @@ void DeterminePaths(const char *exe)
FioCreateDirectory(_searchpaths[SP_AUTODOWNLOAD_DIR]);
/* Create the directory for each of the types of content */
- const Subdirectory dirs[] = { SCENARIO_DIR, HEIGHTMAP_DIR, NEWGRF_DIR, AI_DIR, AI_LIBRARY_DIR, GM_DIR };
+ const Subdirectory dirs[] = { SCENARIO_DIR, HEIGHTMAP_DIR, BASESET_DIR, NEWGRF_DIR, AI_DIR, AI_LIBRARY_DIR, GM_DIR };
for (uint i = 0; i < lengthof(dirs); i++) {
char *tmp = str_fmt("%s%s", _searchpaths[SP_AUTODOWNLOAD_DIR], _subdirs[dirs[i]]);
FioCreateDirectory(tmp);