Skip to content

Latest commit

 

History

History
461 lines (358 loc) · 12.4 KB

archiver_grp.c

File metadata and controls

461 lines (358 loc) · 12.4 KB
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* GRP support routines for PhysicsFS.
*
* This driver handles BUILD engine archives ("groupfiles"). This format
* (but not this driver) was put together by Ken Silverman.
*
* The format is simple enough. In Ken's words:
*
* What's the .GRP file format?
*
* The ".grp" file format is just a collection of a lot of files stored
* into 1 big one. I tried to make the format as simple as possible: The
* first 12 bytes contains my name, "KenSilverman". The next 4 bytes is
* the number of files that were compacted into the group file. Then for
* each file, there is a 16 byte structure, where the first 12 bytes are
* the filename, and the last 4 bytes are the file's size. The rest of
* the group file is just the raw data packed one after the other in the
* same order as the list of files.
*
* (That info is from http://www.advsys.net/ken/build.htm ...)
*
Mar 11, 2007
Mar 11, 2007
22
* Please see the file LICENSE.txt in the source's root directory.
23
24
25
26
*
* This file written by Ryan C. Gordon.
*/
May 10, 2002
May 10, 2002
27
28
#if (defined PHYSFS_SUPPORTS_GRP)
29
30
31
32
33
34
35
36
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
Jul 23, 2002
Jul 23, 2002
37
38
39
typedef struct
{
char name[13];
Aug 28, 2002
Aug 28, 2002
40
41
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
Jul 23, 2002
Jul 23, 2002
42
43
} GRPentry;
44
45
typedef struct
{
Aug 30, 2010
Aug 30, 2010
46
PHYSFS_Io *io;
Jul 23, 2002
Jul 23, 2002
47
48
PHYSFS_uint32 entryCount;
GRPentry *entries;
49
50
51
52
} GRPinfo;
typedef struct
{
Aug 30, 2010
Aug 30, 2010
53
PHYSFS_Io *io;
Jul 23, 2002
Jul 23, 2002
54
GRPentry *entry;
Aug 28, 2002
Aug 28, 2002
55
PHYSFS_uint32 curPos;
56
57
58
} GRPfileinfo;
Aug 30, 2010
Aug 30, 2010
59
static inline int readAll(PHYSFS_Io *io, void *buf, const PHYSFS_uint64 len)
Aug 21, 2010
Aug 21, 2010
60
{
Aug 30, 2010
Aug 30, 2010
61
return (io->read(io, buf, len) == len);
Aug 21, 2010
Aug 21, 2010
62
63
64
} /* readAll */
Sep 26, 2004
Sep 26, 2004
65
static void GRP_dirClose(dvoid *opaque)
Sep 2, 2001
Sep 2, 2001
66
{
Sep 26, 2004
Sep 26, 2004
67
GRPinfo *info = ((GRPinfo *) opaque);
Aug 30, 2010
Aug 30, 2010
68
info->io->destroy(info->io);
Mar 14, 2005
Mar 14, 2005
69
70
allocator.Free(info->entries);
allocator.Free(info);
Sep 2, 2001
Sep 2, 2001
71
} /* GRP_dirClose */
Aug 30, 2010
Aug 30, 2010
74
static PHYSFS_sint64 GRP_read(PHYSFS_Io *io, void *buffer, PHYSFS_uint64 len)
Aug 30, 2010
Aug 30, 2010
76
GRPfileinfo *finfo = (GRPfileinfo *) io->opaque;
Aug 21, 2010
Aug 21, 2010
77
78
const GRPentry *entry = finfo->entry;
const PHYSFS_uint64 bytesLeft = (PHYSFS_uint64)(entry->size-finfo->curPos);
Jul 23, 2002
Jul 23, 2002
79
PHYSFS_sint64 rc;
Aug 21, 2010
Aug 21, 2010
81
82
if (bytesLeft < len)
len = bytesLeft;
Aug 30, 2010
Aug 30, 2010
84
rc = finfo->io->read(finfo->io, buffer, len);
Jul 23, 2002
Jul 23, 2002
85
if (rc > 0)
Aug 21, 2010
Aug 21, 2010
86
finfo->curPos += (PHYSFS_uint32) rc;
Jul 23, 2002
Jul 23, 2002
87
Jan 28, 2010
Jan 28, 2010
88
return rc;
89
90
91
} /* GRP_read */
Aug 30, 2010
Aug 30, 2010
92
static PHYSFS_sint64 GRP_write(PHYSFS_Io *io, const void *b, PHYSFS_uint64 len)
Aug 21, 2002
Aug 21, 2002
93
94
95
96
97
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* GRP_write */
Aug 30, 2010
Aug 30, 2010
98
static PHYSFS_sint64 GRP_tell(PHYSFS_Io *io)
Aug 30, 2010
Aug 30, 2010
100
return ((GRPfileinfo *) io->opaque)->curPos;
101
102
103
} /* GRP_tell */
Aug 30, 2010
Aug 30, 2010
104
static int GRP_seek(PHYSFS_Io *io, PHYSFS_uint64 offset)
Aug 30, 2010
Aug 30, 2010
106
107
GRPfileinfo *finfo = (GRPfileinfo *) io->opaque;
const GRPentry *entry = finfo->entry;
Jul 23, 2002
Jul 23, 2002
108
int rc;
Aug 28, 2002
Aug 28, 2002
110
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
Aug 30, 2010
Aug 30, 2010
111
rc = finfo->io->seek(finfo->io, entry->startPos + offset);
Jul 23, 2002
Jul 23, 2002
112
if (rc)
Aug 28, 2002
Aug 28, 2002
113
finfo->curPos = (PHYSFS_uint32) offset;
Jul 23, 2002
Jul 23, 2002
114
Jan 28, 2010
Jan 28, 2010
115
return rc;
116
117
118
} /* GRP_seek */
Aug 30, 2010
Aug 30, 2010
119
static PHYSFS_sint64 GRP_length(PHYSFS_Io *io)
Jul 9, 2001
Jul 9, 2001
120
{
Aug 30, 2010
Aug 30, 2010
121
const GRPfileinfo *finfo = (GRPfileinfo *) io->opaque;
Jan 28, 2010
Jan 28, 2010
122
return ((PHYSFS_sint64) finfo->entry->size);
Aug 30, 2010
Aug 30, 2010
123
} /* GRP_length */
Jul 9, 2001
Jul 9, 2001
124
125
Aug 30, 2010
Aug 30, 2010
126
static PHYSFS_Io *GRP_duplicate(PHYSFS_Io *_io)
Aug 30, 2010
Aug 30, 2010
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
GRPfileinfo *origfinfo = (GRPfileinfo *) _io->opaque;
PHYSFS_Io *io = NULL;
PHYSFS_Io *retval = (PHYSFS_Io *) allocator.Malloc(sizeof (PHYSFS_Io));
GRPfileinfo *finfo = (GRPfileinfo *) allocator.Malloc(sizeof (GRPfileinfo));
GOTO_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, GRP_duplicate_failed);
GOTO_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, GRP_duplicate_failed);
io = origfinfo->io->duplicate(origfinfo->io);
GOTO_IF_MACRO(io == NULL, NULL, GRP_duplicate_failed);
finfo->io = io;
finfo->entry = origfinfo->entry;
finfo->curPos = 0;
memcpy(retval, _io, sizeof (PHYSFS_Io));
retval->opaque = finfo;
return retval;
GRP_duplicate_failed:
if (finfo != NULL) allocator.Free(finfo);
if (retval != NULL) allocator.Free(retval);
if (io != NULL) io->destroy(io);
return NULL;
} /* GRP_duplicate */
Aug 30, 2010
Aug 30, 2010
151
static int GRP_flush(PHYSFS_Io *io) { return 1; /* no write support. */ }
Aug 30, 2010
Aug 30, 2010
153
static void GRP_destroy(PHYSFS_Io *io)
Aug 30, 2010
Aug 30, 2010
155
156
157
158
159
GRPfileinfo *finfo = (GRPfileinfo *) io->opaque;
finfo->io->destroy(finfo->io);
allocator.Free(finfo);
allocator.Free(io);
} /* GRP_destroy */
Apr 5, 2002
Apr 5, 2002
161
Aug 30, 2010
Aug 30, 2010
162
163
164
165
166
167
168
169
170
171
172
173
static const PHYSFS_Io GRP_Io =
{
GRP_read,
GRP_write,
GRP_seek,
GRP_tell,
GRP_length,
GRP_duplicate,
GRP_flush,
GRP_destroy,
NULL
};
Mar 25, 2002
Mar 25, 2002
174
175
Aug 30, 2010
Aug 30, 2010
177
static int grpEntryCmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
Jul 23, 2002
Jul 23, 2002
178
{
Feb 20, 2008
Feb 20, 2008
179
180
181
if (one != two)
{
const GRPentry *a = (const GRPentry *) _a;
Aug 30, 2010
Aug 30, 2010
182
return __PHYSFS_stricmpASCII(a[one].name, a[two].name);
Feb 20, 2008
Feb 20, 2008
183
184
185
} /* if */
return 0;
Aug 30, 2010
Aug 30, 2010
186
} /* grpEntryCmp */
Jul 23, 2002
Jul 23, 2002
187
188
Aug 30, 2010
Aug 30, 2010
189
static void grpEntrySwap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
Jul 23, 2002
Jul 23, 2002
190
{
Feb 20, 2008
Feb 20, 2008
191
192
193
194
195
196
197
198
199
if (one != two)
{
GRPentry tmp;
GRPentry *first = &(((GRPentry *) _a)[one]);
GRPentry *second = &(((GRPentry *) _a)[two]);
memcpy(&tmp, first, sizeof (GRPentry));
memcpy(first, second, sizeof (GRPentry));
memcpy(second, &tmp, sizeof (GRPentry));
} /* if */
Aug 30, 2010
Aug 30, 2010
200
} /* grpEntrySwap */
Jul 23, 2002
Jul 23, 2002
201
202
Aug 30, 2010
Aug 30, 2010
203
static int grp_load_entries(PHYSFS_Io *io, GRPinfo *info)
Aug 30, 2010
Aug 30, 2010
205
PHYSFS_uint32 fileCount = info->entryCount;
Jul 23, 2002
Jul 23, 2002
206
PHYSFS_uint32 location = 16; /* sizeof sig. */
Jul 23, 2002
Jul 23, 2002
207
208
209
GRPentry *entry;
char *ptr;
Mar 14, 2005
Mar 14, 2005
210
info->entries = (GRPentry *) allocator.Malloc(sizeof(GRPentry)*fileCount);
Aug 30, 2010
Aug 30, 2010
211
BAIL_IF_MACRO(info->entries == NULL, ERR_OUT_OF_MEMORY, 0);
Jul 23, 2002
Jul 23, 2002
212
Jul 23, 2002
Jul 23, 2002
213
214
location += (16 * fileCount);
Jul 23, 2002
Jul 23, 2002
215
216
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
Aug 30, 2010
Aug 30, 2010
217
218
BAIL_IF_MACRO(!readAll(io, &entry->name, 12), NULL, 0);
BAIL_IF_MACRO(!readAll(io, &entry->size, 4), NULL, 0);
Jul 23, 2002
Jul 23, 2002
219
220
221
222
223
224
entry->name[12] = '\0'; /* name isn't null-terminated in file. */
if ((ptr = strchr(entry->name, ' ')) != NULL)
*ptr = '\0'; /* trim extra spaces. */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = location;
Jul 23, 2002
Jul 23, 2002
225
location += entry->size;
Jul 23, 2002
Jul 23, 2002
226
227
} /* for */
Aug 30, 2010
Aug 30, 2010
228
__PHYSFS_sort(info->entries, info->entryCount, grpEntryCmp, grpEntrySwap);
Jan 28, 2010
Jan 28, 2010
229
return 1;
Jul 23, 2002
Jul 23, 2002
230
231
232
} /* grp_load_entries */
Aug 30, 2010
Aug 30, 2010
233
static void *GRP_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
Jul 23, 2002
Jul 23, 2002
234
{
Aug 30, 2010
Aug 30, 2010
235
236
237
238
239
PHYSFS_uint8 buf[12];
GRPinfo *info = NULL;
PHYSFS_uint32 val = 0;
assert(io != NULL); /* shouldn't ever happen. */
Aug 30, 2010
Aug 30, 2010
241
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
Aug 30, 2010
Aug 30, 2010
243
244
245
246
247
248
BAIL_IF_MACRO(!readAll(io, buf, sizeof (buf)), NULL, NULL);
if (memcmp(buf, "KenSilverman", sizeof (buf)) != 0)
GOTO_MACRO(ERR_NOT_AN_ARCHIVE, GRP_openArchive_failed);
info = (GRPinfo *) allocator.Malloc(sizeof (GRPinfo));
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, GRP_openArchive_failed);
Jul 23, 2002
Jul 23, 2002
249
memset(info, '\0', sizeof (GRPinfo));
Aug 30, 2010
Aug 30, 2010
250
info->io = io;
Aug 30, 2010
Aug 30, 2010
252
253
GOTO_IF_MACRO(!readAll(io,&val,sizeof(val)), NULL, GRP_openArchive_failed);
info->entryCount = PHYSFS_swapULE32(val);
Mar 25, 2002
Mar 25, 2002
254
Aug 30, 2010
Aug 30, 2010
255
GOTO_IF_MACRO(!grp_load_entries(io, info), NULL, GRP_openArchive_failed);
Sep 26, 2004
Sep 26, 2004
256
Jan 28, 2010
Jan 28, 2010
257
return info;
Mar 25, 2002
Mar 25, 2002
258
259
GRP_openArchive_failed:
Sep 26, 2004
Sep 26, 2004
260
if (info != NULL)
Mar 25, 2002
Mar 25, 2002
261
{
Sep 26, 2004
Sep 26, 2004
262
if (info->entries != NULL)
Mar 14, 2005
Mar 14, 2005
263
264
allocator.Free(info->entries);
allocator.Free(info);
Mar 25, 2002
Mar 25, 2002
265
266
} /* if */
Jan 28, 2010
Jan 28, 2010
267
return NULL;
268
269
270
} /* GRP_openArchive */
Sep 29, 2004
Sep 29, 2004
271
static void GRP_enumerateFiles(dvoid *opaque, const char *dname,
Sep 18, 2005
Sep 18, 2005
272
273
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
Jul 23, 2002
Jul 23, 2002
275
/* no directories in GRP files. */
Mar 28, 2007
Mar 28, 2007
276
if (*dname == '\0')
Sep 29, 2004
Sep 29, 2004
277
278
279
280
281
{
GRPinfo *info = (GRPinfo *) opaque;
GRPentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
Sep 29, 2004
Sep 29, 2004
283
for (i = 0; i < max; i++, entry++)
Sep 18, 2005
Sep 18, 2005
284
cb(callbackdata, origdir, entry->name);
Sep 29, 2004
Sep 29, 2004
285
} /* if */
286
287
288
} /* GRP_enumerateFiles */
Feb 15, 2010
Feb 15, 2010
289
static GRPentry *grp_find_entry(const GRPinfo *info, const char *name)
Jul 23, 2002
Jul 23, 2002
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
char *ptr = strchr(name, '.');
GRPentry *a = info->entries;
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
int rc;
/*
* Rule out filenames to avoid unneeded processing...no dirs,
* big filenames, or extensions > 3 chars.
*/
BAIL_IF_MACRO((ptr) && (strlen(ptr) > 4), ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strlen(name) > 12, ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strchr(name, '/') != NULL, ERR_NO_SUCH_FILE, NULL);
while (lo <= hi)
Jul 23, 2002
Jul 23, 2002
308
middle = lo + ((hi - lo) / 2);
Aug 30, 2010
Aug 30, 2010
309
rc = __PHYSFS_stricmpASCII(name, a[middle].name);
Jul 23, 2002
Jul 23, 2002
310
if (rc == 0) /* found it! */
Jan 28, 2010
Jan 28, 2010
311
return &a[middle];
Jul 23, 2002
Jul 23, 2002
312
313
314
315
316
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
Jul 23, 2002
Jul 23, 2002
318
319
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* grp_find_entry */
Sep 26, 2004
Sep 26, 2004
322
static int GRP_exists(dvoid *opaque, const char *name)
Jan 28, 2010
Jan 28, 2010
324
return (grp_find_entry((GRPinfo *) opaque, name) != NULL);
325
326
327
} /* GRP_exists */
Sep 26, 2004
Sep 26, 2004
328
static int GRP_isDirectory(dvoid *opaque, const char *name, int *fileExists)
Sep 26, 2004
Sep 26, 2004
330
*fileExists = GRP_exists(opaque, name);
Jan 28, 2010
Jan 28, 2010
331
return 0; /* never directories in a groupfile. */
332
333
334
} /* GRP_isDirectory */
Sep 26, 2004
Sep 26, 2004
335
static int GRP_isSymLink(dvoid *opaque, const char *name, int *fileExists)
Sep 26, 2004
Sep 26, 2004
337
*fileExists = GRP_exists(opaque, name);
Jan 28, 2010
Jan 28, 2010
338
return 0; /* never symlinks in a groupfile. */
339
340
341
} /* GRP_isSymLink */
Aug 30, 2010
Aug 30, 2010
342
static PHYSFS_Io *GRP_openRead(dvoid *opaque, const char *fnm, int *fileExists)
Aug 30, 2010
Aug 30, 2010
344
PHYSFS_Io *retval = NULL;
Sep 26, 2004
Sep 26, 2004
345
GRPinfo *info = (GRPinfo *) opaque;
346
GRPfileinfo *finfo;
Jul 23, 2002
Jul 23, 2002
347
GRPentry *entry;
Aug 21, 2002
Aug 21, 2002
349
350
entry = grp_find_entry(info, fnm);
*fileExists = (entry != NULL);
Aug 30, 2010
Aug 30, 2010
351
352
353
354
GOTO_IF_MACRO(entry == NULL, NULL, GRP_openRead_failed);
retval = (PHYSFS_Io *) allocator.Malloc(sizeof (PHYSFS_Io));
GOTO_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, GRP_openRead_failed);
Mar 14, 2005
Mar 14, 2005
356
finfo = (GRPfileinfo *) allocator.Malloc(sizeof (GRPfileinfo));
Aug 30, 2010
Aug 30, 2010
357
GOTO_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, GRP_openRead_failed);
Aug 30, 2010
Aug 30, 2010
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
finfo->io = info->io->duplicate(info->io);
GOTO_IF_MACRO(finfo->io == NULL, NULL, GRP_openRead_failed);
if (!finfo->io->seek(finfo->io, entry->startPos))
GOTO_MACRO(NULL, GRP_openRead_failed);
finfo->curPos = 0;
finfo->entry = entry;
memcpy(retval, &GRP_Io, sizeof (*retval));
retval->opaque = finfo;
return retval;
GRP_openRead_failed:
if (finfo != NULL)
Mar 25, 2002
Mar 25, 2002
374
{
Aug 30, 2010
Aug 30, 2010
375
376
if (finfo->io != NULL)
finfo->io->destroy(finfo->io);
Mar 14, 2005
Mar 14, 2005
377
allocator.Free(finfo);
Mar 25, 2002
Mar 25, 2002
378
379
} /* if */
Aug 30, 2010
Aug 30, 2010
380
381
382
383
if (retval != NULL)
allocator.Free(retval);
return NULL;
384
385
} /* GRP_openRead */
Aug 21, 2002
Aug 21, 2002
386
Aug 30, 2010
Aug 30, 2010
387
static PHYSFS_Io *GRP_openWrite(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
388
389
390
391
392
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openWrite */
Aug 30, 2010
Aug 30, 2010
393
static PHYSFS_Io *GRP_openAppend(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
394
395
396
397
398
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openAppend */
Sep 26, 2004
Sep 26, 2004
399
static int GRP_remove(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
400
401
402
403
404
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_remove */
Sep 26, 2004
Sep 26, 2004
405
static int GRP_mkdir(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
406
407
408
409
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_mkdir */
Sep 29, 2004
Sep 29, 2004
410
Aug 22, 2010
Aug 22, 2010
411
static int GRP_stat(dvoid *opaque, const char *filename, int *exists,
Feb 15, 2010
Feb 15, 2010
412
413
414
415
416
417
418
419
420
421
422
PHYSFS_Stat *stat)
{
const GRPinfo *info = (const GRPinfo *) opaque;
const GRPentry *entry = grp_find_entry(info, filename);
*exists = (entry != 0);
if (!entry)
return 0;
stat->filesize = entry->size;
stat->filetype = PHYSFS_FILETYPE_REGULAR;
Aug 25, 2010
Aug 25, 2010
423
424
stat->modtime = -1;
stat->createtime = -1;
Feb 15, 2010
Feb 15, 2010
425
426
427
stat->accesstime = -1;
stat->readonly = 1;
Aug 21, 2010
Aug 21, 2010
428
return 1;
Feb 15, 2010
Feb 15, 2010
429
430
431
} /* GRP_stat */
Sep 29, 2004
Sep 29, 2004
432
433
434
435
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
{
"GRP",
GRP_ARCHIVE_DESCRIPTION,
Jan 1, 2006
Jan 1, 2006
436
"Ryan C. Gordon <icculus@icculus.org>",
Sep 29, 2004
Sep 29, 2004
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_GRP =
{
&__PHYSFS_ArchiveInfo_GRP,
GRP_openArchive, /* openArchive() method */
GRP_enumerateFiles, /* enumerateFiles() method */
GRP_exists, /* exists() method */
GRP_isDirectory, /* isDirectory() method */
GRP_isSymLink, /* isSymLink() method */
GRP_openRead, /* openRead() method */
GRP_openWrite, /* openWrite() method */
GRP_openAppend, /* openAppend() method */
GRP_remove, /* remove() method */
GRP_mkdir, /* mkdir() method */
GRP_dirClose, /* dirClose() method */
Aug 30, 2010
Aug 30, 2010
455
GRP_stat /* stat() method */
Sep 29, 2004
Sep 29, 2004
456
457
};
May 10, 2002
May 10, 2002
458
459
#endif /* defined PHYSFS_SUPPORTS_GRP */
460
/* end of grp.c ... */