X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=include%2Fifilesystem.h;h=d7e128e6e1791a83f40dcc81102a01acbfb26fc3;hb=fea0d2e6575b21945c4800805d66e43a2247ded5;hp=6bbc0db21789718a137d99528c49d77da01a374e;hpb=62d99f889c0e98be65f779d3983109c84ce58cec;p=xonotic%2Fnetradiant.git diff --git a/include/ifilesystem.h b/include/ifilesystem.h index 6bbc0db2..d7e128e6 100644 --- a/include/ifilesystem.h +++ b/include/ifilesystem.h @@ -24,10 +24,10 @@ #include #include "generic/constant.h" -#include "generic/callbackfwd.h" +#include "generic/callback.h" -typedef Callback1 ArchiveNameCallback; -typedef Callback1 FileNameCallback; +typedef Callback ArchiveNameCallback; +typedef Callback FileNameCallback; class ArchiveFile; class ArchiveTextFile; @@ -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 ){