mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Updated FileSystem ifaces and edict_t struct with BGT compatibility (bug 4784, r=DS).
This commit is contained in:
parent
e1e0385dc3
commit
e73943780d
@ -205,7 +205,9 @@ public:
|
||||
|
||||
// NOTE: this is in the edict instead of being accessed by a virtual because the engine needs fast access to it.
|
||||
int m_NetworkSerialNumber; // Game DLL sets this when it gets a serial number for its EHANDLE.
|
||||
|
||||
|
||||
void *m_pUnknown;
|
||||
|
||||
// NOTE: this is in the edict instead of being accessed by a virtual because the engine needs fast access to it.
|
||||
IServerNetworkable *m_pNetworkable;
|
||||
|
||||
|
@ -449,6 +449,7 @@ public:
|
||||
// converts a partial path into a full path
|
||||
virtual const char *RelativePathToFullPath( const char *pFileName, const char *pPathID, char *pLocalPath, int localPathBufferSize, PathTypeFilter_t pathFilter = FILTER_NONE, PathTypeQuery_t *pPathType = NULL ) = 0;
|
||||
|
||||
virtual void Unknown() = 0;
|
||||
// Returns the search path, each path is separated by ;s. Returns the length of the string returned
|
||||
virtual int GetSearchPath( const char *pathID, bool bGetPackFiles, char *pPath, int nMaxLen ) = 0;
|
||||
|
||||
|
@ -173,6 +173,7 @@ public:
|
||||
virtual bool AsyncSuspend() { return m_pFileSystemPassThru->AsyncSuspend(); }
|
||||
virtual bool AsyncResume() { return m_pFileSystemPassThru->AsyncResume(); }
|
||||
virtual const char *RelativePathToFullPath( const char *pFileName, const char *pPathID, char *pLocalPath, int localPathBufferSize, PathTypeFilter_t pathFilter = FILTER_NONE, PathTypeQuery_t *pPathType = NULL ) { return m_pFileSystemPassThru->RelativePathToFullPath( pFileName, pPathID, pLocalPath, localPathBufferSize, pathFilter, pPathType ); }
|
||||
virtual void Unknown() {return;}
|
||||
virtual int GetSearchPath( const char *pathID, bool bGetPackFiles, char *pPath, int nMaxLen ) { return m_pFileSystemPassThru->GetSearchPath( pathID, bGetPackFiles, pPath, nMaxLen ); }
|
||||
|
||||
virtual FileHandle_t OpenEx( const char *pFileName, const char *pOptions, unsigned flags = 0, const char *pathID = 0, char **ppszResolvedFilename = NULL ) { return m_pFileSystemPassThru->OpenEx( pFileName, pOptions, flags, pathID, ppszResolvedFilename );}
|
||||
|
Loading…
Reference in New Issue
Block a user