mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
660 B
C++
33 lines
660 B
C++
10 years ago
|
#include "archive.hpp"
|
||
|
|
||
|
#include <components/bsa/bsa_file.hpp>
|
||
|
|
||
|
namespace VFS
|
||
|
{
|
||
|
|
||
|
class BsaArchiveFile : public File
|
||
|
{
|
||
|
public:
|
||
|
BsaArchiveFile(const Bsa::BSAFile::FileStruct* info, Bsa::BSAFile* bsa);
|
||
|
|
||
|
virtual Files::IStreamPtr open();
|
||
|
|
||
|
const Bsa::BSAFile::FileStruct* mInfo;
|
||
|
Bsa::BSAFile* mFile;
|
||
|
};
|
||
|
|
||
|
class BsaArchive : public Archive
|
||
|
{
|
||
|
public:
|
||
|
BsaArchive(const std::string& filename);
|
||
|
|
||
|
virtual void listResources(std::map<std::string, File*>& out, char (*normalize_function) (char));
|
||
|
|
||
|
private:
|
||
|
Bsa::BSAFile mFile;
|
||
|
|
||
|
std::vector<BsaArchiveFile> mResources;
|
||
|
};
|
||
|
|
||
|
}
|