Skip to content

Latest commit

 

History

History
462 lines (359 loc) · 12.2 KB

archiver_grp.c

File metadata and controls

462 lines (359 loc) · 12.2 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
{
Mar 25, 2002
Mar 25, 2002
46
char *filename;
Jul 23, 2002
Jul 23, 2002
47
48
PHYSFS_uint32 entryCount;
GRPentry *entries;
49
50
51
52
} GRPinfo;
typedef struct
{
Mar 25, 2002
Mar 25, 2002
53
void *handle;
Jul 23, 2002
Jul 23, 2002
54
GRPentry *entry;
Aug 28, 2002
Aug 28, 2002
55
PHYSFS_uint32 curPos;
56
57
58
} GRPfileinfo;
Aug 21, 2010
Aug 21, 2010
59
60
61
62
63
64
static inline int readAll(void *fh, void *buf, const PHYSFS_uint64 len)
{
return (__PHYSFS_platformRead(fh, buf, len) == len);
} /* 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);
Mar 14, 2005
Mar 14, 2005
68
69
70
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
Sep 2, 2001
Sep 2, 2001
71
} /* GRP_dirClose */
Aug 21, 2010
Aug 21, 2010
74
static PHYSFS_sint64 GRP_read(fvoid *opaque, void *buffer, PHYSFS_uint64 len)
Sep 26, 2004
Sep 26, 2004
76
GRPfileinfo *finfo = (GRPfileinfo *) 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 21, 2010
Aug 21, 2010
84
rc = __PHYSFS_platformRead(finfo->handle, 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 21, 2010
Aug 21, 2010
92
static PHYSFS_sint64 GRP_write(fvoid *f, const void *buf, PHYSFS_uint64 len)
Aug 21, 2002
Aug 21, 2002
93
94
95
96
97
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* GRP_write */
Sep 26, 2004
Sep 26, 2004
98
static int GRP_eof(fvoid *opaque)
Sep 26, 2004
Sep 26, 2004
100
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
Jul 23, 2002
Jul 23, 2002
101
GRPentry *entry = finfo->entry;
Jan 28, 2010
Jan 28, 2010
102
return (finfo->curPos >= entry->size);
103
104
105
} /* GRP_eof */
Sep 26, 2004
Sep 26, 2004
106
static PHYSFS_sint64 GRP_tell(fvoid *opaque)
Jan 28, 2010
Jan 28, 2010
108
return ((GRPfileinfo *) opaque)->curPos;
109
110
111
} /* GRP_tell */
Sep 26, 2004
Sep 26, 2004
112
static int GRP_seek(fvoid *opaque, PHYSFS_uint64 offset)
Sep 26, 2004
Sep 26, 2004
114
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
Jul 23, 2002
Jul 23, 2002
115
116
GRPentry *entry = finfo->entry;
int rc;
117
118
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
Aug 28, 2002
Aug 28, 2002
119
120
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
Jul 23, 2002
Jul 23, 2002
121
if (rc)
Aug 28, 2002
Aug 28, 2002
122
finfo->curPos = (PHYSFS_uint32) offset;
Jul 23, 2002
Jul 23, 2002
123
Jan 28, 2010
Jan 28, 2010
124
return rc;
125
126
127
} /* GRP_seek */
Sep 26, 2004
Sep 26, 2004
128
static PHYSFS_sint64 GRP_fileLength(fvoid *opaque)
Jul 9, 2001
Jul 9, 2001
129
{
Sep 26, 2004
Sep 26, 2004
130
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
Jan 28, 2010
Jan 28, 2010
131
return ((PHYSFS_sint64) finfo->entry->size);
Jul 9, 2001
Jul 9, 2001
132
133
134
} /* GRP_fileLength */
Sep 26, 2004
Sep 26, 2004
135
static int GRP_fileClose(fvoid *opaque)
Sep 26, 2004
Sep 26, 2004
137
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
Jul 23, 2002
Jul 23, 2002
138
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
Mar 14, 2005
Mar 14, 2005
139
allocator.Free(finfo);
Jan 28, 2010
Jan 28, 2010
140
return 1;
141
142
143
} /* GRP_fileClose */
Jul 23, 2002
Jul 23, 2002
144
145
static int grp_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count)
Mar 25, 2002
Mar 25, 2002
147
PHYSFS_uint8 buf[12];
148
149
150
151
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
Mar 25, 2002
Mar 25, 2002
152
153
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
Aug 21, 2010
Aug 21, 2010
155
if (!readAll(*fh, buf, 12))
Mar 25, 2002
Mar 25, 2002
156
157
158
159
160
161
162
goto openGrp_failed;
if (memcmp(buf, "KenSilverman", 12) != 0)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openGrp_failed;
} /* if */
Aug 21, 2010
Aug 21, 2010
164
if (!readAll(*fh, count, sizeof (PHYSFS_uint32)))
Mar 25, 2002
Mar 25, 2002
165
goto openGrp_failed;
Jul 23, 2002
Jul 23, 2002
167
*count = PHYSFS_swapULE32(*count);
Apr 5, 2002
Apr 5, 2002
168
Jan 28, 2010
Jan 28, 2010
169
return 1;
Mar 25, 2002
Mar 25, 2002
170
171
172
173
174
175
176
openGrp_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
Jan 28, 2010
Jan 28, 2010
177
return 0;
Jul 23, 2002
Jul 23, 2002
178
} /* grp_open */
Aug 20, 2002
Aug 20, 2002
181
static int grp_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
Jul 23, 2002
Jul 23, 2002
182
{
Feb 20, 2008
Feb 20, 2008
183
184
185
if (one != two)
{
const GRPentry *a = (const GRPentry *) _a;
Jan 28, 2010
Jan 28, 2010
186
return (strcmp(a[one].name, a[two].name));
Feb 20, 2008
Feb 20, 2008
187
188
189
} /* if */
return 0;
Aug 20, 2002
Aug 20, 2002
190
} /* grp_entry_cmp */
Jul 23, 2002
Jul 23, 2002
191
192
Aug 20, 2002
Aug 20, 2002
193
static void grp_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
Jul 23, 2002
Jul 23, 2002
194
{
Feb 20, 2008
Feb 20, 2008
195
196
197
198
199
200
201
202
203
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 20, 2002
Aug 20, 2002
204
} /* grp_entry_swap */
Jul 23, 2002
Jul 23, 2002
205
206
207
static int grp_load_entries(const char *name, int forWriting, GRPinfo *info)
Mar 25, 2002
Mar 25, 2002
209
void *fh = NULL;
Jul 23, 2002
Jul 23, 2002
210
PHYSFS_uint32 fileCount;
Jul 23, 2002
Jul 23, 2002
211
PHYSFS_uint32 location = 16; /* sizeof sig. */
Jul 23, 2002
Jul 23, 2002
212
213
214
215
216
GRPentry *entry;
char *ptr;
BAIL_IF_MACRO(!grp_open(name, forWriting, &fh, &fileCount), NULL, 0);
info->entryCount = fileCount;
Mar 14, 2005
Mar 14, 2005
217
info->entries = (GRPentry *) allocator.Malloc(sizeof(GRPentry)*fileCount);
Jul 23, 2002
Jul 23, 2002
218
219
220
221
222
223
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
Jul 23, 2002
Jul 23, 2002
224
225
location += (16 * fileCount);
Jul 23, 2002
Jul 23, 2002
226
227
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
Aug 21, 2010
Aug 21, 2010
228
229
if ( (!readAll(fh, &entry->name, 12)) ||
(!readAll(fh, &entry->size, sizeof (PHYSFS_uint32))) )
Jul 23, 2002
Jul 23, 2002
230
231
{
__PHYSFS_platformClose(fh);
Jan 28, 2010
Jan 28, 2010
232
return 0;
Jul 23, 2002
Jul 23, 2002
233
234
235
236
237
238
239
240
} /* if */
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
241
location += entry->size;
Jul 23, 2002
Jul 23, 2002
242
243
244
245
} /* for */
__PHYSFS_platformClose(fh);
Aug 20, 2002
Aug 20, 2002
246
247
__PHYSFS_sort(info->entries, info->entryCount,
grp_entry_cmp, grp_entry_swap);
Jan 28, 2010
Jan 28, 2010
248
return 1;
Jul 23, 2002
Jul 23, 2002
249
250
251
} /* grp_load_entries */
Sep 26, 2004
Sep 26, 2004
252
static void *GRP_openArchive(const char *name, int forWriting)
Jul 23, 2002
Jul 23, 2002
253
{
Mar 14, 2005
Mar 14, 2005
254
GRPinfo *info = (GRPinfo *) allocator.Malloc(sizeof (GRPinfo));
Sep 26, 2004
Sep 26, 2004
256
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, 0);
Jul 23, 2002
Jul 23, 2002
258
memset(info, '\0', sizeof (GRPinfo));
Mar 14, 2005
Mar 14, 2005
259
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
Mar 13, 2005
Mar 13, 2005
260
GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, GRP_openArchive_failed);
Jul 23, 2002
Jul 23, 2002
262
if (!grp_load_entries(name, forWriting, info))
Mar 25, 2002
Mar 25, 2002
263
264
goto GRP_openArchive_failed;
Jul 23, 2002
Jul 23, 2002
265
strcpy(info->filename, name);
Sep 26, 2004
Sep 26, 2004
266
Jan 28, 2010
Jan 28, 2010
267
return info;
Mar 25, 2002
Mar 25, 2002
268
269
GRP_openArchive_failed:
Sep 26, 2004
Sep 26, 2004
270
if (info != NULL)
Mar 25, 2002
Mar 25, 2002
271
{
Sep 26, 2004
Sep 26, 2004
272
if (info->filename != NULL)
Mar 14, 2005
Mar 14, 2005
273
allocator.Free(info->filename);
Sep 26, 2004
Sep 26, 2004
274
if (info->entries != NULL)
Mar 14, 2005
Mar 14, 2005
275
276
allocator.Free(info->entries);
allocator.Free(info);
Mar 25, 2002
Mar 25, 2002
277
278
} /* if */
Jan 28, 2010
Jan 28, 2010
279
return NULL;
280
281
282
} /* GRP_openArchive */
Sep 29, 2004
Sep 29, 2004
283
static void GRP_enumerateFiles(dvoid *opaque, const char *dname,
Sep 18, 2005
Sep 18, 2005
284
285
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
Jul 23, 2002
Jul 23, 2002
287
/* no directories in GRP files. */
Mar 28, 2007
Mar 28, 2007
288
if (*dname == '\0')
Sep 29, 2004
Sep 29, 2004
289
290
291
292
293
{
GRPinfo *info = (GRPinfo *) opaque;
GRPentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
Sep 29, 2004
Sep 29, 2004
295
for (i = 0; i < max; i++, entry++)
Sep 18, 2005
Sep 18, 2005
296
cb(callbackdata, origdir, entry->name);
Sep 29, 2004
Sep 29, 2004
297
} /* if */
298
299
300
} /* GRP_enumerateFiles */
Feb 15, 2010
Feb 15, 2010
301
static GRPentry *grp_find_entry(const GRPinfo *info, const char *name)
Jul 23, 2002
Jul 23, 2002
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
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
320
321
322
middle = lo + ((hi - lo) / 2);
rc = strcmp(name, a[middle].name);
if (rc == 0) /* found it! */
Jan 28, 2010
Jan 28, 2010
323
return &a[middle];
Jul 23, 2002
Jul 23, 2002
324
325
326
327
328
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
Jul 23, 2002
Jul 23, 2002
330
331
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* grp_find_entry */
Sep 26, 2004
Sep 26, 2004
334
static int GRP_exists(dvoid *opaque, const char *name)
Jan 28, 2010
Jan 28, 2010
336
return (grp_find_entry((GRPinfo *) opaque, name) != NULL);
337
338
339
} /* GRP_exists */
Sep 26, 2004
Sep 26, 2004
340
static int GRP_isDirectory(dvoid *opaque, const char *name, int *fileExists)
Sep 26, 2004
Sep 26, 2004
342
*fileExists = GRP_exists(opaque, name);
Jan 28, 2010
Jan 28, 2010
343
return 0; /* never directories in a groupfile. */
344
345
346
} /* GRP_isDirectory */
Sep 26, 2004
Sep 26, 2004
347
static int GRP_isSymLink(dvoid *opaque, const char *name, int *fileExists)
Sep 26, 2004
Sep 26, 2004
349
*fileExists = GRP_exists(opaque, name);
Jan 28, 2010
Jan 28, 2010
350
return 0; /* never symlinks in a groupfile. */
351
352
353
} /* GRP_isSymLink */
Sep 26, 2004
Sep 26, 2004
354
static fvoid *GRP_openRead(dvoid *opaque, const char *fnm, int *fileExists)
Sep 26, 2004
Sep 26, 2004
356
GRPinfo *info = (GRPinfo *) opaque;
357
GRPfileinfo *finfo;
Jul 23, 2002
Jul 23, 2002
358
GRPentry *entry;
Aug 21, 2002
Aug 21, 2002
360
361
entry = grp_find_entry(info, fnm);
*fileExists = (entry != NULL);
Jul 23, 2002
Jul 23, 2002
362
BAIL_IF_MACRO(entry == NULL, NULL, NULL);
Mar 14, 2005
Mar 14, 2005
364
finfo = (GRPfileinfo *) allocator.Malloc(sizeof (GRPfileinfo));
Sep 26, 2004
Sep 26, 2004
365
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
Jul 23, 2002
Jul 23, 2002
367
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
Mar 25, 2002
Mar 25, 2002
368
if ( (finfo->handle == NULL) ||
Jul 23, 2002
Jul 23, 2002
369
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
Mar 25, 2002
Mar 25, 2002
370
{
Mar 14, 2005
Mar 14, 2005
371
allocator.Free(finfo);
Jan 28, 2010
Jan 28, 2010
372
return NULL;
Mar 25, 2002
Mar 25, 2002
373
374
} /* if */
Jul 23, 2002
Jul 23, 2002
375
376
finfo->curPos = 0;
finfo->entry = entry;
Jan 28, 2010
Jan 28, 2010
377
return finfo;
378
379
} /* GRP_openRead */
Aug 21, 2002
Aug 21, 2002
380
Sep 26, 2004
Sep 26, 2004
381
static fvoid *GRP_openWrite(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
382
383
384
385
386
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openWrite */
Sep 26, 2004
Sep 26, 2004
387
static fvoid *GRP_openAppend(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
388
389
390
391
392
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openAppend */
Sep 26, 2004
Sep 26, 2004
393
static int GRP_remove(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
394
395
396
397
398
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_remove */
Sep 26, 2004
Sep 26, 2004
399
static int GRP_mkdir(dvoid *opaque, const char *name)
Aug 21, 2002
Aug 21, 2002
400
401
402
403
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_mkdir */
Sep 29, 2004
Sep 29, 2004
404
Aug 22, 2010
Aug 22, 2010
405
static int GRP_stat(dvoid *opaque, const char *filename, int *exists,
Feb 15, 2010
Feb 15, 2010
406
407
408
409
410
411
412
413
414
415
416
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
417
418
stat->modtime = -1;
stat->createtime = -1;
Feb 15, 2010
Feb 15, 2010
419
420
421
stat->accesstime = -1;
stat->readonly = 1;
Aug 21, 2010
Aug 21, 2010
422
return 1;
Feb 15, 2010
Feb 15, 2010
423
424
425
} /* GRP_stat */
Sep 29, 2004
Sep 29, 2004
426
427
428
429
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
{
"GRP",
GRP_ARCHIVE_DESCRIPTION,
Jan 1, 2006
Jan 1, 2006
430
"Ryan C. Gordon <icculus@icculus.org>",
Sep 29, 2004
Sep 29, 2004
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
"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 22, 2010
Aug 22, 2010
449
GRP_stat, /* stat() method */
Sep 29, 2004
Sep 29, 2004
450
451
452
453
454
455
GRP_read, /* read() method */
GRP_write, /* write() method */
GRP_eof, /* eof() method */
GRP_tell, /* tell() method */
GRP_seek, /* seek() method */
GRP_fileLength, /* fileLength() method */
Aug 22, 2010
Aug 22, 2010
456
GRP_fileClose /* fileClose() method */
Sep 29, 2004
Sep 29, 2004
457
458
};
May 10, 2002
May 10, 2002
459
460
#endif /* defined PHYSFS_SUPPORTS_GRP */
461
/* end of grp.c ... */