mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-07 14:50:21 +00:00
[vfs #1] Add ttvfs, miniz, and minihttp sources
This commit is contained in:
parent
99e3f5ebe2
commit
a90f57afb0
36 changed files with 10047 additions and 0 deletions
32
ExternalLibs/ttvfs_zip/VFSDirZip.h
Normal file
32
ExternalLibs/ttvfs_zip/VFSDirZip.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef VFSDIR_ZIP_H
|
||||
#define VFSDIR_ZIP_H
|
||||
|
||||
#include "VFSDir.h"
|
||||
|
||||
#include "miniz.h"
|
||||
|
||||
VFS_NAMESPACE_START
|
||||
|
||||
class VFSFile;
|
||||
|
||||
class VFSDirZip : public VFSDir
|
||||
{
|
||||
public:
|
||||
VFSDirZip(VFSFile *zf);
|
||||
virtual ~VFSDirZip();
|
||||
virtual unsigned int load(bool recusive);
|
||||
virtual VFSDir *createNew(const char *dir) const;
|
||||
virtual const char *getType() const { return "VFSDirZip"; }
|
||||
virtual bool close();
|
||||
|
||||
inline mz_zip_archive *getZip() { return &_zip; }
|
||||
|
||||
protected:
|
||||
VFSFile *_zf;
|
||||
mz_zip_archive _zip;
|
||||
std::string zipfilename;
|
||||
};
|
||||
|
||||
VFS_NAMESPACE_END
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue