archivers/dir.c
changeset 399 02dd53688315
parent 311 8a4ee9ab0fc3
child 427 c38ace41039f
--- a/archivers/dir.c	Fri Jul 26 06:18:30 2002 +0000
+++ b/archivers/dir.c	Fri Jul 26 06:19:09 2002 +0000
@@ -46,6 +46,15 @@
 static void DIR_dirClose(DirHandle *h);
 
 
+const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
+{
+    "",
+    "non-archive directory I/O",
+    "Ryan C. Gordon <icculus@clutteredmind.org>",
+    "http://icculus.org/physfs/",
+};
+
+
 static const FileFunctions __PHYSFS_FileFunctions_DIR =
 {
     DIR_read,       /* read() method       */
@@ -72,6 +81,7 @@
 
 const DirFunctions __PHYSFS_DirFunctions_DIR =
 {
+    &__PHYSFS_ArchiveInfo_DIR,
     DIR_isArchive,          /* isArchive() method      */
     DIR_openArchive,        /* openArchive() method    */
     DIR_enumerateFiles,     /* enumerateFiles() method */
@@ -88,18 +98,6 @@
 };
 
 
-/* This doesn't get listed, since it's technically not an archive... */
-#if 0
-const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
-{
-    "DIR",
-    "non-archive directory I/O",
-    "Ryan C. Gordon <icculus@clutteredmind.org>",
-    "http://www.icculus.org/physfs/",
-};
-#endif
-
-
 static PHYSFS_sint64 DIR_read(FileHandle *handle, void *buffer,
                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
 {