This class implements file systems that are ZIP archives, employing the ZipArchive library by Artpol Software. More...
#include "FileSys_ZipArchive_AS.hpp"
Public Member Functions | |
FileSystemZipArchiveAST (const std::string &ArchiveName_, const std::string &MountPoint_, const std::string &Password_="") | |
Constructor. More... | |
~FileSystemZipArchiveAST () | |
Destructor. Destroys the file system. More... | |
InFileI * | OpenRead (const std::string &FileName) |
Opens the file with the given name for reading. More... | |
![]() | |
virtual | ~FileSystemT () |
The virtual destructor, so that derived classes can safely be deleted via a FileSystemT (base class) pointer. More... | |
This class implements file systems that are ZIP archives, employing the ZipArchive library by Artpol Software.
The ZipArchive library supports AES encryption in accordance with the WinZip format, but it cannot be redistributed with the Cafu source code due to its licensing conditions. Note however that employing AES encryption for Cafu asset files is not useful anyway, as any determined hacker could reverse-engineer the Cafu executable or access e.g. the texture images by a modified graphics driver anyway. Therefore, we now use the other implementation FileSystemZipArchiveGST by Gilles Vollant now, which is under the liberal zlib license with which redistribution is no problem.
FileSystemZipArchiveAST::FileSystemZipArchiveAST | ( | const std::string & | ArchiveName_, |
const std::string & | MountPoint_, | ||
const std::string & | Password_ = "" |
||
) |
Constructor.
FileSystemExceptionT | when there is a problem with initializing this file system. |
FileSystemZipArchiveAST::~FileSystemZipArchiveAST | ( | ) |
Destructor. Destroys the file system.
|
virtual |
Opens the file with the given name for reading.
FileName | The name of the file to be opened within this file system. |
Implements cf::FileSys::FileSystemT.