platform/posix.c
changeset 754 e7cd7411eadf
parent 747 3da194b12f43
child 763 efadd9cdb6a4
--- a/platform/posix.c	Fri Sep 09 20:35:18 2005 +0000
+++ b/platform/posix.c	Sun Sep 18 21:44:42 2005 +0000
@@ -227,7 +227,8 @@
 
 void __PHYSFS_platformEnumerateFiles(const char *dirname,
                                      int omitSymLinks,
-                                     PHYSFS_StringCallback callback,
+                                     PHYSFS_EnumFilesCallback callback,
+                                     const char *origdir,
                                      void *callbackdata)
 {
     DIR *dir;
@@ -286,7 +287,7 @@
                 continue;
         } /* if */
 
-        callback(callbackdata, ent->d_name);
+        callback(callbackdata, origdir, ent->d_name);
     } /* while */
 
     if (buf != NULL)