X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=include%2Fifilesystem.h;h=f497528f42a086b118124f46be938618ee04668c;hb=6e9818d9cddf3880d001a544770c8c2c5187676f;hp=6bbc0db21789718a137d99528c49d77da01a374e;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc;p=xonotic%2Fnetradiant.git diff --git a/include/ifilesystem.h b/include/ifilesystem.h index 6bbc0db2..f497528f 100644 --- a/include/ifilesystem.h +++ b/include/ifilesystem.h @@ -50,6 +50,10 @@ virtual void initDirectory( const char *path ) = 0; /// \brief Initialises the filesystem. /// Called after all root search paths have been added. virtual void initialise() = 0; +/// \brief Clear the filesystem if supported +virtual void clear() = 0; +/// \brief Reload the filesystem if supported +virtual void refresh() = 0; /// \brief Shuts down the filesystem. virtual void shutdown() = 0; @@ -120,7 +124,7 @@ inline VirtualFileSystem& GlobalFileSystem(){ /// \deprecated Use \c openFile. inline int vfsLoadFile( const char* filename, void** buffer, int index = 0 ){ return static_cast( GlobalFileSystem().loadFile( filename, buffer ) ); -}; +} /// \deprecated Deprecated. inline void vfsFreeFile( void* p ){