Changeset - r18381:0e9d2aa3fc1b
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-11-15 00:26:06
frosch@openttd.org
(svn r23227) -Fix (r23219): The FileScanner should also consider the old directories.
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -1372,12 +1372,24 @@ uint FileScanner::Scan(const char *exten
 
	if (tars && sd != NO_DIRECTORY) {
 
		FOR_ALL_TARS(tar, sd) {
 
			num += ScanTar(this, extension, tar);
 
		}
 
	}
 

	
 
	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;
 
}
 

	
 
/**
 
 * Scan for files with the given extention in the given search path.
 
 * @param extension the extension of files to search for.
0 comments (0 inline, 0 general)