mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 06:10:45 +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
17
ExternalLibs/ttvfs_zip/VFSZipArchiveLoader.cpp
Normal file
17
ExternalLibs/ttvfs_zip/VFSZipArchiveLoader.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "VFSInternal.h"
|
||||
#include "VFSZipArchiveLoader.h"
|
||||
#include "VFSDirZip.h"
|
||||
|
||||
VFS_NAMESPACE_START
|
||||
|
||||
VFSDir *VFSZipArchiveLoader::Load(VFSFile *arch, VFSLoader ** /*unused*/, void * /*unused*/)
|
||||
{
|
||||
VFSDirZip *vd = new VFSDirZip(arch);
|
||||
if(vd->load(true))
|
||||
return vd;
|
||||
|
||||
vd->ref--;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
VFS_NAMESPACE_END
|
Loading…
Add table
Add a link
Reference in a new issue