allow VFS drivers to register themselves

This commit is contained in:
Glenn Maynard
2004-02-10 23:39:45 +00:00
parent e2e692f77a
commit 1b69bfdff9
6 changed files with 54 additions and 11 deletions
+12
View File
@@ -52,5 +52,17 @@ public:
virtual RageFileObj *Copy( RageFile &p ) const = 0;
};
/* This is used to register the driver, so RageFileManager can see it. */
struct FileDriverEntry
{
FileDriverEntry( CString Type );
virtual ~FileDriverEntry();
virtual RageFileDriver *Create( CString Root ) const = 0;
CString m_Type;
const FileDriverEntry *m_Link;
};
RageFileDriver *MakeFileDriver( CString Type, CString Root );
#endif