mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 06:41:38 +00:00
added partial VFS support - enough to read static data from any source
This commit is contained in:
parent
0951283b31
commit
fa3e9e7329
56 changed files with 4021 additions and 606 deletions
31
ExternalLibs/ttvfs/VFSLoader.h
Normal file
31
ExternalLibs/ttvfs/VFSLoader.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
// VFSLoader.h - late loading of files not in the tree
|
||||
// For conditions of distribution and use, see copyright notice in VFS.h
|
||||
|
||||
#ifndef VFSLOADER_H
|
||||
#define VFSLOADER_H
|
||||
|
||||
#include "VFSDefines.h"
|
||||
|
||||
VFS_NAMESPACE_START
|
||||
|
||||
class VFSFile;
|
||||
|
||||
// VFSLoader - to be called if a file is not in the tree.
|
||||
class VFSLoader
|
||||
{
|
||||
public:
|
||||
virtual ~VFSLoader() {}
|
||||
virtual VFSFile *Load(const char *fn) = 0;
|
||||
};
|
||||
|
||||
class VFSLoaderDisk : public VFSLoader
|
||||
{
|
||||
public:
|
||||
virtual ~VFSLoaderDisk() {}
|
||||
virtual VFSFile *Load(const char *fn);
|
||||
};
|
||||
|
||||
VFS_NAMESPACE_END
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue