File diff r23552:91d98b9489aa → r23553:9f01781fc43d
src/fios.cpp
Show inline comments
 
@@ -333,25 +333,25 @@ bool FiosFileScanner::AddFile(const char
 
 * Fill the list of the files in a directory, according to some arbitrary rule.
 
 * @param fop Purpose of collecting the list.
 
 * @param callback_proc The function that is called where you need to do the filtering.
 
 * @param subdir The directory from where to start (global) searching.
 
 * @param file_list Destination of the found files.
 
 */
 
static void FiosGetFileList(SaveLoadOperation fop, fios_getlist_callback_proc *callback_proc, Subdirectory subdir, FileList &file_list)
 
{
 
	struct stat sb;
 
	struct dirent *dirent;
 
	DIR *dir;
 
	FiosItem *fios;
 
	int sort_start;
 
	size_t sort_start;
 
	char d_name[sizeof(fios->name)];
 

	
 
	file_list.Clear();
 

	
 
	/* A parent directory link exists if we are not in the root directory */
 
	if (!FiosIsRoot(_fios_path)) {
 
		fios = file_list.Append();
 
		fios->type = FIOS_TYPE_PARENT;
 
		fios->mtime = 0;
 
		strecpy(fios->name, "..", lastof(fios->name));
 
		strecpy(fios->title, ".. (Parent directory)", lastof(fios->title));
 
	}