mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4276 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b5240d6335
commit
fe069802af
1 changed files with 2 additions and 2 deletions
|
@ -747,7 +747,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
|
||||
|
||||
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *), void *parm)
|
||||
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *, void *), void *parm, void *sparm)
|
||||
{
|
||||
DIR *dir;
|
||||
char apath[MAX_OSPATH];
|
||||
|
@ -805,7 +805,7 @@ int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const
|
|||
{
|
||||
Q_snprintfz(file, sizeof(file), "%s%s%s", apath, ent->d_name, S_ISDIR(st.st_mode)?"/":"");
|
||||
|
||||
if (!func(file, st.st_size, parm))
|
||||
if (!func(file, st.st_size, parm, sparm))
|
||||
{
|
||||
closedir(dir);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue