It comiples in Linux, thanks to Spike for the break&fix.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2994 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5c65851fb7
commit
afb7e76967
1 changed files with 4 additions and 4 deletions
|
@ -757,20 +757,20 @@ dir_t *Sys_listdir (char *path, char *ext, qboolean usesorting)
|
|||
#ifndef __CYGWIN__
|
||||
if (oneentry->d_type == DT_DIR || oneentry->d_type == DT_LNK)
|
||||
{
|
||||
d.numdirs++;
|
||||
d->numdirs++;
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
sprintf(pathname, "%s/%s", path, oneentry->d_name);
|
||||
list[d->numfiles].size = COM_FileSize(pathname);
|
||||
d->size += list[d->numfiles].size;
|
||||
d->files[d->numfiles].size = COM_FileSize(pathname);
|
||||
d->size += d->files[d->numfiles].size;
|
||||
|
||||
i = strlen(oneentry->d_name);
|
||||
if (!all && (i < extsize || (Q_strcasecmp(oneentry->d_name+i-extsize, ext))))
|
||||
continue;
|
||||
|
||||
Q_strncpyz(list[d->numfiles].name, oneentry->d_name, MAX_MVD_NAME);
|
||||
Q_strncpyz(d->files[d->numfiles].name, oneentry->d_name, MAX_MVD_NAME);
|
||||
d->numfiles++;
|
||||
|
||||
if (d->numfiles == d->maxfiles)
|
||||
|
|
Loading…
Reference in a new issue