2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-23 09:16:04 +01:00

filesystem: VFileSystem009: HL25 compatibility (one single new method)

This commit is contained in:
Alibek Omarov 2023-11-20 01:46:13 +03:00
parent 2d41c9cb15
commit 1d1a6badb5
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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