Просмотр исходного кода

Updated to latest driver spec.

Ryan C. Gordon 25 лет назад
Родитель
Сommit
7be11ab27d
2 измененных файлов с 10 добавлено и 4 удалено
  1. 5 2
      dir.c
  2. 5 2
      zip.c

+ 5 - 2
dir.c

@@ -39,12 +39,15 @@ const DirFunctions __PHYSFS_DirFunctions_DIR =
     DIR_isArchive,     /* isArchive() method      */
     DIR_openArchive,   /* openArchive() method    */
     DIR_enumerate,     /* enumerateFiles() method */
+    DIR_exists,        /* exists() method         */
     DIR_isDirectory,   /* isDirectory() method    */
     DIR_isSymLink,     /* isSymLink() method      */
-    DIR_isOpenable,    /* isOpenable() method     */
     DIR_openRead,      /* openRead() method       */
     DIR_openWrite,     /* openWrite() method      */
-    DIR_dirClose,      /* close() method          */
+    DIR_openAppend,    /* openAppend() method     */
+    DIR_remove,        /* remove() method         */
+    DIR_mkdir,         /* mkdir() method          */
+    DIR_close,         /* close() method          */
 };
 
 

+ 5 - 2
zip.c

@@ -33,12 +33,15 @@ const DirFunctions __PHYSFS_DirFunctions_ZIP =
     ZIP_isArchive,     /* isArchive() method      */
     ZIP_openArchive,   /* openArchive() method    */
     ZIP_enumerate,     /* enumerateFiles() method */
+    ZIP_exists,        /* exists() method         */
     ZIP_isDirectory,   /* isDirectory() method    */
     ZIP_isSymLink,     /* isSymLink() method      */
-    ZIP_isOpenable,    /* isOpenable() method     */
     ZIP_openRead,      /* openRead() method       */
     NULL,              /* openWrite() method      */
-    ZIP_dirClose,      /* close() method          */
+    NULL,              /* openAppend() method     */
+    NULL,              /* remove() method         */
+    NULL,              /* mkdir() method          */
+    ZIP_close,         /* close() method          */
 };
 
 const __PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =