44 std::unique_ptr<RawData> input (vfs->
open(datfile));
45 input->setIndex(info.
offset);
53 throw InvalidFormat(
"failed to decompress " + info.
name +
" (inside: " + datfile +
")");
The needed information for the extraction.
RawDataDAT2(VFS *vfs, const std::string &datfile, const s_info &info)
Constructor.
Simpe RawDataSource that reads data from raw memory.
RawData * open(const std::string &path)
Open a file.
uint8_t * getRawData() const
Get a Pointer to the data You need to use this function to fill the class with meaningfull data...
the main VFS (virtual file system) class