Skip to content

Commit

Permalink
getLastModTime implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 6, 2002
1 parent f2ddb53 commit 6fd0450
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion archivers/grp.c
Expand Up @@ -76,6 +76,7 @@ static LinkedStringList *GRP_enumerateFiles(DirHandle *h,
static int GRP_exists(DirHandle *h, const char *name);
static int GRP_isDirectory(DirHandle *h, const char *name);
static int GRP_isSymLink(DirHandle *h, const char *name);
static PHYSFS_sint64 GRP_getLastModTime(DirHandle *h, const char *name);
static FileHandle *GRP_openRead(DirHandle *h, const char *name);

static const FileFunctions __PHYSFS_FileFunctions_GRP =
Expand All @@ -98,7 +99,7 @@ const DirFunctions __PHYSFS_DirFunctions_GRP =
GRP_exists, /* exists() method */
GRP_isDirectory, /* isDirectory() method */
GRP_isSymLink, /* isSymLink() method */
NULL, /* getLastModTime() method */
GRP_getLastModTime, /* getLastModTime() method */
GRP_openRead, /* openRead() method */
NULL, /* openWrite() method */
NULL, /* openAppend() method */
Expand Down Expand Up @@ -404,6 +405,13 @@ static int GRP_isSymLink(DirHandle *h, const char *name)
} /* GRP_isSymLink */


static PHYSFS_sint64 GRP_getLastModTime(DirHandle *h, const char *name)
{
/* Just return the time of the GRP itself in the physical filesystem. */
return(__PHYSFS_platformGetLastModTime(((GRPinfo *) h->opaque)->filename));
} /* GRP_getLastModTime */


static FileHandle *GRP_openRead(DirHandle *h, const char *name)
{
const char *filename = ((GRPinfo *) h->opaque)->filename;
Expand Down

0 comments on commit 6fd0450

Please sign in to comment.