Changeset - r10778:91727300f461
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-01-16 16:14:01
rubidium@openttd.org
(svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -1078,18 +1078,21 @@ static uint ScanTar(FileScanner *fs, con
 
 */
 
uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars)
 
{
 
	Searchpath sp;
 
	char path[MAX_PATH];
 
	TarFileList::iterator tar;
 
	uint num = 0;
 

	
 
	FOR_ALL_SEARCHPATHS(sp) {
 
		FioAppendDirectory(path, MAX_PATH, sp, sd);
 
		num += ScanPath(this, extension, path, strlen(path));
 
	}
 

	
 
	if (tars) {
 
	FOR_ALL_TARS(tar) {
 
		num += ScanTar(this, extension, tar);
 
	}
 
	}
 

	
 
	return num;
 
}
0 comments (0 inline, 0 general)