Changeset - r18016:ed7b28b213ba
[Not reviewed]
master
0 2 0
rubidium - 13 years ago 2011-08-25 10:31:35
rubidium@openttd.org
(svn r22835) -Codechange: keep track of the subdirectory we are looking through in the file scanner
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -1317,6 +1317,8 @@ static uint ScanTar(FileScanner *fs, con
 
 */
 
uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars, bool recursive)
 
{
 
	this->subdir = sd;
 

	
 
	Searchpath sp;
 
	char path[MAX_PATH];
 
	TarFileList::iterator tar;
src/fileio_func.h
Show inline comments
 
@@ -67,8 +67,9 @@ bool ExtractTar(const char *tar_filename
 
extern char *_personal_dir; ///< custom directory for personal settings, saves, newgrf, etc.
 

	
 
/** Helper for scanning for files with a given name */
 
class FileScanner
 
{
 
class FileScanner {
 
protected:
 
	Subdirectory subdir; ///< The current sub directory we are searching through
 
public:
 
	/** Destruct the proper one... */
 
	virtual ~FileScanner() {}
0 comments (0 inline, 0 general)