1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 22:35:45 +00:00
Aquaria/ExternalLibs/ttvfs_zip/VFSDirZip.h

30 lines
547 B
C
Raw Normal View History

#ifndef VFSDIR_ZIP_H
#define VFSDIR_ZIP_H
#include "VFSDir.h"
2014-04-06 17:19:33 +00:00
#include "VFSZipArchiveRef.h"
VFS_NAMESPACE_START
2014-04-06 17:19:33 +00:00
class ZipDir : public Dir
{
public:
2014-04-06 17:19:33 +00:00
ZipDir(ZipArchiveRef *handle, const char *subpath, bool canLoad);
virtual ~ZipDir();
virtual void load();
virtual const char *getType() const { return "ZipDir"; }
virtual void close();
virtual DirBase *createNew(const char *dir) const;
protected:
2014-04-06 17:19:33 +00:00
CountedPtr<ZipArchiveRef> _archiveHandle;
bool _canLoad;
const bool _couldLoad;
};
2014-04-06 17:19:33 +00:00
VFS_NAMESPACE_END
#endif