mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-23 01:11:44 +01:00
filesystem: VFileSystem009: HL25 compatibility (one single new method)
This commit is contained in:
parent
2d41c9cb15
commit
1d1a6badb5
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user