mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00: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 );
|
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
|
void FileTimeToString( char *p, int size, long int time ) override
|
||||||
{
|
{
|
||||||
const time_t curtime = time;
|
const time_t curtime = time;
|
||||||
|
@ -40,8 +40,7 @@ public:
|
|||||||
virtual ~IBaseInterface() {}
|
virtual ~IBaseInterface() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class IVFileSystem009 : public IBaseInterface
|
class IVFileSystem009 : public IBaseInterface {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
virtual void Mount() = 0; /* linkage=_ZN11IFileSystem5MountEv */
|
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 FileHandle_t OpenFromCacheForRead(const char *, const char *, const char *) = 0; /* linkage=_ZN11IFileSystem20OpenFromCacheForReadEPKcS1_S1_ */
|
||||||
|
|
||||||
virtual void AddSearchPathNoWrite(const char *, const char *) = 0; /* linkage=_ZN11IFileSystem20AddSearchPathNoWriteEPKcS1_ */
|
virtual void AddSearchPathNoWrite(const char *, const char *) = 0; /* linkage=_ZN11IFileSystem20AddSearchPathNoWriteEPKcS1_ */
|
||||||
|
|
||||||
|
virtual long int GetFileModificationTime(const char *) = 0; /* linkage=_ZN11IFileSystem23GetFileModificationTimeEPKc */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VFILESYSTEM009_H
|
#endif // VFILESYSTEM009_H
|
||||||
|
Loading…
Reference in New Issue
Block a user