3#include "../PackFile.h"
23 [[nodiscard]]
static std::unique_ptr<PackFile>
open(
const std::string& path,
const EntryCallback& callback =
nullptr);
25 static constexpr inline std::string_view
GUID =
"C47C5C4D88AE4032967F8CDC93D6D2E1";
27 [[nodiscard]]
constexpr std::string_view
getGUID()
const override {
31 [[nodiscard]] std::optional<std::vector<std::byte>>
readEntry(
const std::string& path_)
const override;
#define SOURCEPP_BITFLAGS_ENUM(Enum)
Defines bitwise operators for an enum or enum class.
#define VPKPP_REGISTER_PACKFILE_OPEN(extension, function)
PackFileReadOnly(const std::string &fullFilePath_)
EntryCallbackBase< void > EntryCallback
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 VPP file.
static constexpr std::string_view GUID
Attribute getSupportedEntryAttributes() const override
Returns a list of supported entry attributes Mostly for GUI programs that show entries and their meta...
std::vector< std::byte > uncondensedData
std::optional< std::vector< std::byte > > readEntry(const std::string &path_) const override
Try to read the entry's data to a bytebuffer.
constexpr uint32_t VPP_ALIGNMENT
constexpr std::string_view VPP_EXTENSION_PC
constexpr uint32_t VPP_SIGNATURE_BIG
constexpr std::string_view VPP_EXTENSION
constexpr uint32_t VPP_SIGNATURE_LIL
constexpr std::string_view VPP_EXTENSION_XBOX2