#ifndef CPAKFILE_H #define CPAKFILE_H #include #include #include "SNamedResource.h" #include "SResInfo.h" #include class CPakFile { private: u32 version; std::vector NamedResTable; std::vector ResInfoTable; CInputStream* pak; bool decompress(u8 *src, u32 src_len, u8 *dst, u32 dst_len); public: CPakFile(); CPakFile(CInputStream* pakfile); ~CPakFile(); std::vector getNamedResources(); SResInfo getResourceInfo(u64 assetID, CFourCC assetType); std::vector* getResource(u64 assetID, CFourCC assetType); std::vector* getResource(SResInfo& info); }; #endif // CPAKFILE_H