diff --git a/filesystem/VFileSystem009.cpp b/filesystem/VFileSystem009.cpp index 28582089..f906183f 100644 --- a/filesystem/VFileSystem009.cpp +++ b/filesystem/VFileSystem009.cpp @@ -233,6 +233,13 @@ public: return FS_FileTime( p, false ); } + long int GetFileModificationTime( const char *path ) + { + // TODO: properly reverse-engineer this + FixupPath( p, path ); + return FS_FileTime( p, false ); + } + void FileTimeToString( char *p, int size, long int time ) override { const time_t curtime = time; diff --git a/filesystem/VFileSystem009.h b/filesystem/VFileSystem009.h index e48f4b7a..f42f2fb7 100644 --- a/filesystem/VFileSystem009.h +++ b/filesystem/VFileSystem009.h @@ -40,8 +40,7 @@ public: virtual ~IBaseInterface() {} }; -class IVFileSystem009 : public IBaseInterface -{ +class IVFileSystem009 : public IBaseInterface { public: virtual void Mount() = 0; /* linkage=_ZN11IFileSystem5MountEv */ @@ -148,6 +147,8 @@ public: virtual FileHandle_t OpenFromCacheForRead(const char *, const char *, const char *) = 0; /* linkage=_ZN11IFileSystem20OpenFromCacheForReadEPKcS1_S1_ */ virtual void AddSearchPathNoWrite(const char *, const char *) = 0; /* linkage=_ZN11IFileSystem20AddSearchPathNoWriteEPKcS1_ */ + + virtual long int GetFileModificationTime(const char *) = 0; /* linkage=_ZN11IFileSystem23GetFileModificationTimeEPKc */ }; #endif // VFILESYSTEM009_H