5#include "../PackFile.h"
14 [[nodiscard]]
static std::unique_ptr<PackFile>
open(
const std::string& path,
const EntryCallback& callback =
nullptr);
16 static constexpr inline std::string_view
GUID =
"7E4766FD0F7340069AA923C9D3DAB37B";
18 [[nodiscard]]
constexpr std::string_view
getGUID()
const override {
30 [[nodiscard]] std::optional<std::vector<std::byte>>
readEntry(
const std::string& path_)
const override;
34 [[nodiscard]]
explicit operator std::string()
const override;
#define VPKPP_REGISTER_PACKFILE_OPEN(extension, function)
Attribute getSupportedEntryAttributes() const override
Returns a list of supported entry attributes Mostly for GUI programs that show entries and their meta...
static constexpr std::string_view GUID
constexpr std::string_view getGUID() const override
Get the GUID corresponding to the pack file type.
static std::unique_ptr< PackFile > open(const std::string &path, const EntryCallback &callback=nullptr)
Open a 007 file.
constexpr bool isCaseSensitive() const override
Does the format support case-sensitive file names?
bool verifyPackFileChecksum() const override
Verify the checksum of the entire file, returns true on success Will return true if there is no check...
std::optional< std::vector< std::byte > > readEntry(const std::string &path_) const override
Try to read the entry's data to a bytebuffer.
bool hasPackFileChecksum() const override
Returns true if the entire file has a checksum.
std::array< std::byte, 16 > checksum
PackFileReadOnly(const std::string &fullFilePath_)
EntryCallbackBase< void > EntryCallback
constexpr std::string_view OO7_EXTENSION