mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Updated IFileSystem interface.
This commit is contained in:
@ -362,7 +362,7 @@ public:
|
|||||||
|
|
||||||
// This is the minimal interface that can be implemented to provide access to
|
// This is the minimal interface that can be implemented to provide access to
|
||||||
// a named set of files.
|
// a named set of files.
|
||||||
#define BASEFILESYSTEM_INTERFACE_VERSION "VBaseFileSystem011"
|
#define BASEFILESYSTEM_INTERFACE_VERSION "VBaseFileSystem012"
|
||||||
|
|
||||||
abstract_class IBaseFileSystem
|
abstract_class IBaseFileSystem
|
||||||
{
|
{
|
||||||
@ -402,7 +402,7 @@ public:
|
|||||||
// Main file system interface
|
// Main file system interface
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define FILESYSTEM_INTERFACE_VERSION "VFileSystem017"
|
#define FILESYSTEM_INTERFACE_VERSION "VFileSystem018"
|
||||||
|
|
||||||
abstract_class IFileSystem : public IAppSystem, public IBaseFileSystem
|
abstract_class IFileSystem : public IAppSystem, public IBaseFileSystem
|
||||||
{
|
{
|
||||||
@ -456,6 +456,8 @@ public:
|
|||||||
// interface for custom pack files > 4Gb
|
// interface for custom pack files > 4Gb
|
||||||
virtual bool AddPackFile( const char *fullpath, const char *pathID ) = 0;
|
virtual bool AddPackFile( const char *fullpath, const char *pathID ) = 0;
|
||||||
|
|
||||||
|
virtual bool IsLocalizedPath ( const char *path, const char *pathID ) = 0;
|
||||||
|
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// File manipulation operations
|
// File manipulation operations
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
@ -512,6 +514,7 @@ public:
|
|||||||
FileFindHandle_t *pHandle
|
FileFindHandle_t *pHandle
|
||||||
) = 0;
|
) = 0;
|
||||||
|
|
||||||
|
virtual void FindFileAbsoluteList( CUtlVector<CUtlString> &, const char *, const char * ) = 0;
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// File name and directory operations
|
// File name and directory operations
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
|
@ -161,8 +161,10 @@ public:
|
|||||||
const char *pPathID,
|
const char *pPathID,
|
||||||
FileFindHandle_t *pHandle
|
FileFindHandle_t *pHandle
|
||||||
) { return m_pFileSystemPassThru->FindFirstEx( pWildCard, pPathID, pHandle ); }
|
) { return m_pFileSystemPassThru->FindFirstEx( pWildCard, pPathID, pHandle ); }
|
||||||
|
virtual void FindFileAbsoluteList( CUtlVector<CUtlString> &a, const char *b, const char *c ) { m_pFileSystemPassThru->FindFileAbsoluteList(a, b, c); }
|
||||||
virtual void MarkPathIDByRequestOnly( const char *pPathID, bool bRequestOnly ) { m_pFileSystemPassThru->MarkPathIDByRequestOnly( pPathID, bRequestOnly ); }
|
virtual void MarkPathIDByRequestOnly( const char *pPathID, bool bRequestOnly ) { m_pFileSystemPassThru->MarkPathIDByRequestOnly( pPathID, bRequestOnly ); }
|
||||||
virtual bool AddPackFile( const char *fullpath, const char *pathID ) { return m_pFileSystemPassThru->AddPackFile( fullpath, pathID ); }
|
virtual bool AddPackFile( const char *fullpath, const char *pathID ) { return m_pFileSystemPassThru->AddPackFile( fullpath, pathID ); }
|
||||||
|
virtual bool IsLocalizedPath ( const char *path, const char *pathID ) { return m_pFileSystemPassThru->IsLocalizedPath(path, pathID); }
|
||||||
virtual FSAsyncStatus_t AsyncAppend(const char *pFileName, const void *pSrc, int nSrcBytes, bool bFreeMemory, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncAppend( pFileName, pSrc, nSrcBytes, bFreeMemory, pControl); }
|
virtual FSAsyncStatus_t AsyncAppend(const char *pFileName, const void *pSrc, int nSrcBytes, bool bFreeMemory, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncAppend( pFileName, pSrc, nSrcBytes, bFreeMemory, pControl); }
|
||||||
virtual FSAsyncStatus_t AsyncWrite(const char *pFileName, const void *pSrc, int nSrcBytes, bool bFreeMemory, bool bAppend, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncWrite( pFileName, pSrc, nSrcBytes, bFreeMemory, bAppend, pControl); }
|
virtual FSAsyncStatus_t AsyncWrite(const char *pFileName, const void *pSrc, int nSrcBytes, bool bFreeMemory, bool bAppend, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncWrite( pFileName, pSrc, nSrcBytes, bFreeMemory, bAppend, pControl); }
|
||||||
virtual FSAsyncStatus_t AsyncWriteFile(const char *pFileName, const CUtlBuffer *pSrc, int nSrcBytes, bool bFreeMemory, bool bAppend, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncWriteFile( pFileName, pSrc, nSrcBytes, bFreeMemory, bAppend, pControl); }
|
virtual FSAsyncStatus_t AsyncWriteFile(const char *pFileName, const CUtlBuffer *pSrc, int nSrcBytes, bool bFreeMemory, bool bAppend, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncWriteFile( pFileName, pSrc, nSrcBytes, bFreeMemory, bAppend, pControl); }
|
||||||
|
Reference in New Issue
Block a user