getLastModTime implemented.

This commit is contained in:
Ryan C. Gordon 2002-06-06 05:47:41 +00:00
parent f2ddb5383a
commit 6fd0450c96
1 changed files with 9 additions and 1 deletions

View File

@ -76,6 +76,7 @@ static LinkedStringList *GRP_enumerateFiles(DirHandle *h,
static int GRP_exists(DirHandle *h, const char *name); static int GRP_exists(DirHandle *h, const char *name);
static int GRP_isDirectory(DirHandle *h, const char *name); static int GRP_isDirectory(DirHandle *h, const char *name);
static int GRP_isSymLink(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 FileHandle *GRP_openRead(DirHandle *h, const char *name);
static const FileFunctions __PHYSFS_FileFunctions_GRP = static const FileFunctions __PHYSFS_FileFunctions_GRP =
@ -98,7 +99,7 @@ const DirFunctions __PHYSFS_DirFunctions_GRP =
GRP_exists, /* exists() method */ GRP_exists, /* exists() method */
GRP_isDirectory, /* isDirectory() method */ GRP_isDirectory, /* isDirectory() method */
GRP_isSymLink, /* isSymLink() method */ GRP_isSymLink, /* isSymLink() method */
NULL, /* getLastModTime() method */ GRP_getLastModTime, /* getLastModTime() method */
GRP_openRead, /* openRead() method */ GRP_openRead, /* openRead() method */
NULL, /* openWrite() method */ NULL, /* openWrite() method */
NULL, /* openAppend() method */ NULL, /* openAppend() method */
@ -404,6 +405,13 @@ static int GRP_isSymLink(DirHandle *h, const char *name)
} /* GRP_isSymLink */ } /* 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) static FileHandle *GRP_openRead(DirHandle *h, const char *name)
{ {
const char *filename = ((GRPinfo *) h->opaque)->filename; const char *filename = ((GRPinfo *) h->opaque)->filename;