88 static int GRP_isDirectory(DirHandle *h, const char *name); |
88 static int GRP_isDirectory(DirHandle *h, const char *name); |
89 static int GRP_isSymLink(DirHandle *h, const char *name); |
89 static int GRP_isSymLink(DirHandle *h, const char *name); |
90 static PHYSFS_sint64 GRP_getLastModTime(DirHandle *h, const char *name); |
90 static PHYSFS_sint64 GRP_getLastModTime(DirHandle *h, const char *name); |
91 static FileHandle *GRP_openRead(DirHandle *h, const char *name); |
91 static FileHandle *GRP_openRead(DirHandle *h, const char *name); |
92 |
92 |
|
93 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP = |
|
94 { |
|
95 "GRP", |
|
96 "Build engine Groupfile format", |
|
97 "Ryan C. Gordon <icculus@clutteredmind.org>", |
|
98 "http://icculus.org/physfs/", |
|
99 }; |
|
100 |
|
101 |
93 static const FileFunctions __PHYSFS_FileFunctions_GRP = |
102 static const FileFunctions __PHYSFS_FileFunctions_GRP = |
94 { |
103 { |
95 GRP_read, /* read() method */ |
104 GRP_read, /* read() method */ |
96 NULL, /* write() method */ |
105 NULL, /* write() method */ |
97 GRP_eof, /* eof() method */ |
106 GRP_eof, /* eof() method */ |
102 }; |
111 }; |
103 |
112 |
104 |
113 |
105 const DirFunctions __PHYSFS_DirFunctions_GRP = |
114 const DirFunctions __PHYSFS_DirFunctions_GRP = |
106 { |
115 { |
|
116 &__PHYSFS_ArchiveInfo_GRP, |
107 GRP_isArchive, /* isArchive() method */ |
117 GRP_isArchive, /* isArchive() method */ |
108 GRP_openArchive, /* openArchive() method */ |
118 GRP_openArchive, /* openArchive() method */ |
109 GRP_enumerateFiles, /* enumerateFiles() method */ |
119 GRP_enumerateFiles, /* enumerateFiles() method */ |
110 GRP_exists, /* exists() method */ |
120 GRP_exists, /* exists() method */ |
111 GRP_isDirectory, /* isDirectory() method */ |
121 GRP_isDirectory, /* isDirectory() method */ |
115 NULL, /* openWrite() method */ |
125 NULL, /* openWrite() method */ |
116 NULL, /* openAppend() method */ |
126 NULL, /* openAppend() method */ |
117 NULL, /* remove() method */ |
127 NULL, /* remove() method */ |
118 NULL, /* mkdir() method */ |
128 NULL, /* mkdir() method */ |
119 GRP_dirClose /* dirClose() method */ |
129 GRP_dirClose /* dirClose() method */ |
120 }; |
|
121 |
|
122 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP = |
|
123 { |
|
124 "GRP", |
|
125 "Build engine Groupfile format", |
|
126 "Ryan C. Gordon <icculus@clutteredmind.org>", |
|
127 "http://www.icculus.org/physfs/", |
|
128 }; |
130 }; |
129 |
131 |
130 |
132 |
131 |
133 |
132 static void GRP_dirClose(DirHandle *h) |
134 static void GRP_dirClose(DirHandle *h) |