archivers/dir.c
changeset 28 529214f57d1b
parent 23 bd6ba9c8717c
child 29 91b45664ec85
--- a/archivers/dir.c	Mon Jul 09 01:45:13 2001 +0000
+++ b/archivers/dir.c	Mon Jul 09 04:15:35 2001 +0000
@@ -70,6 +70,12 @@
 } /* DIR_seek */
 
 
+static int DIR_fileLength(FileHandle *handle)
+{
+    return(__PHYSFS_platformFileLength((FILE *) (handle->opaque)));
+} /* DIR_fileLength */
+
+
 static int DIR_fileClose(FileHandle *handle)
 {
     FILE *h = (FILE *) (handle->opaque);
@@ -283,18 +289,20 @@
     DIR_eof,        /* eof() method       */
     DIR_tell,       /* tell() method      */
     DIR_seek,       /* seek() method      */
-    DIR_fileClose,  /* fileClose() method */
+    DIR_fileLength, /* fileLength() method */
+    DIR_fileClose   /* fileClose() method */
 };
 
 
 static const FileFunctions __PHYSFS_FileFunctions_DIRW =
 {
-    NULL,           /* read() method      */
-    DIR_write,      /* write() method     */
-    DIR_eof,        /* eof() method       */
-    DIR_tell,       /* tell() method      */
-    DIR_seek,       /* seek() method      */
-    DIR_fileClose   /* fileClose() method */
+    NULL,           /* read() method       */
+    DIR_write,      /* write() method      */
+    DIR_eof,        /* eof() method        */
+    DIR_tell,       /* tell() method       */
+    DIR_seek,       /* seek() method       */
+    DIR_fileLength, /* fileLength() method */
+    DIR_fileClose   /* fileClose() method  */
 };