![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
Classes | |
| class | APK |
| struct | BakeOptions |
| class | Entry |
| This class represents the metadata that a file has inside a PackFile. More... | |
| struct | EntryOptions |
| class | EXAMPLE |
| class | FGP |
| class | FPX |
| class | GCF |
| class | GMA |
| class | HOG |
| class | OL |
| class | OO7 |
| class | ORE |
| class | PackFile |
| class | PackFileReadOnly |
| class | PAK |
| class | PCK |
| class | VPK |
| class | VPK_VTMB |
| class | VPP |
| class | WAD3 |
| Valve GoldSrc WAD3 file. More... | |
| class | XZP |
| class | ZIP |
Enumerations | |
| enum class | Attribute { NONE = 0 , ARCHIVE_INDEX = 1 << 0 , LENGTH = 1 << 1 , CRC32 = 1 << 2 , PCK_MD5 = 1 << 3 , VPK_PRELOADED_DATA = 1 << 4 } |
| enum class | EntryCompressionType : int16_t { NO_OVERRIDE = -1 , NO_COMPRESS = 0 , DEFLATE = 8 , BZIP2 = 12 , LZMA = 14 , ZSTD = 93 , XZ = 95 } |
Variables | |
| constexpr auto | APK_SIGNATURE = sourcepp::parser::binary::makeFourCC("W#\0\0") |
| constexpr std::string_view | APK_EXTENSION = ".apk" |
| constexpr auto | FGP_SIGNATURE = sourcepp::parser::binary::makeFourCC("FGP\0") |
| constexpr std::string_view | FGP_EXTENSION = ".grp" |
| constexpr std::string_view | FGP_HASHED_FILEPATH_PREFIX = "__hashed__/" |
| constexpr auto | FGP_SOURCEPP_FILENAMES_SIGNATURE = sourcepp::parser::binary::makeEightCC("PPECRUOS") |
| constexpr uint32_t | FPX_SIGNATURE = 0x3241ff33 |
| constexpr std::string_view | FPX_DIR_SUFFIX = "_fdr" |
| constexpr std::string_view | FPX_EXTENSION = ".fpx" |
| constexpr std::string_view | GCF_EXTENSION = ".gcf" |
| constexpr auto | GMA_SIGNATURE = sourcepp::parser::binary::makeFourCC("GMAD") |
| constexpr std::string_view | GMA_EXTENSION = ".gma" |
| constexpr std::string_view | HOG_SIGNATURE = "DHF" |
| constexpr std::string_view | HOG_EXTENSION = ".hog" |
| constexpr std::string_view | OL_SIGNATURE = "Worldcraft Prefab Library\x0d\x0a\x1a" |
| constexpr std::string_view | OL_EXTENSION = ".ol" |
| constexpr std::string_view | OO7_EXTENSION = ".007" |
| constexpr std::string_view | ORE_EXTENSION = ".ore" |
| constexpr uint8_t | PAK_FILENAME_MAX_SIZE = 56 |
| constexpr auto | PAK_SIGNATURE = sourcepp::parser::binary::makeFourCC("PACK") |
| constexpr uint8_t | PAK_SIN_FILENAME_MAX_SIZE = 120 |
| constexpr auto | PAK_SIN_SIGNATURE = sourcepp::parser::binary::makeFourCC("SPAK") |
| constexpr uint8_t | PAK_HROT_FILENAME_MAX_SIZE = 120 |
| constexpr auto | PAK_HROT_SIGNATURE = sourcepp::parser::binary::makeFourCC("HROT") |
| constexpr std::string_view | PAK_EXTENSION = ".pak" |
| constexpr std::string_view | SIN_EXTENSION = ".sin" |
| constexpr auto | PCK_SIGNATURE = sourcepp::parser::binary::makeFourCC("GDPC") |
| constexpr std::string_view | PCK_PATH_PREFIX = "res://" |
| constexpr std::string_view | PCK_EXTENSION = ".pck" |
| constexpr uint32_t | VPK_SIGNATURE = 0x55aa1234 |
| constexpr uint16_t | VPK_DIR_INDEX = 0x7fff |
| constexpr uint16_t | VPK_ENTRY_TERM = 0xffff |
| constexpr std::string_view | VPK_DIR_SUFFIX = "_dir" |
| constexpr std::string_view | VPK_EXTENSION = ".vpk" |
| constexpr std::string_view | VPK_KEYPAIR_PUBLIC_KEY_TEMPLATE = "public_key\n{\n\ttype \"rsa\"\n\trsa_public_key \"%s\"\n}\n" |
| constexpr std::string_view | VPK_KEYPAIR_PRIVATE_KEY_TEMPLATE = "private_key\n{\n\ttype \"rsa\"\n\trsa_private_key \"%s\"\n\tprivate_key_encrypted 0\n\tpublic_key\n\t{\n\t\ttype \"rsa\"\n\t\trsa_public_key \"%s\"\n\t}\n}\n" |
| constexpr uint16_t | VPK_MAX_PRELOAD_BYTES = 1024 |
| Maximum preload data size in bytes. | |
| constexpr uint32_t | VPK_DEFAULT_CHUNK_SIZE = 200 * 1024 * 1024 |
| Chunk size in bytes (default is 200mb) | |
| constexpr std::string_view | VPK_VTMB_EXTENSION = ".vpk" |
| constexpr uint32_t | VPP_SIGNATURE_LIL = 0x51890ACE |
| constexpr uint32_t | VPP_SIGNATURE_BIG = 0xCE0A8951 |
| constexpr uint32_t | VPP_ALIGNMENT = 2048 |
| constexpr std::string_view | VPP_EXTENSION = ".vpp" |
| constexpr std::string_view | VPP_EXTENSION_PC = ".vpp_pc" |
| constexpr std::string_view | VPP_EXTENSION_XBOX2 = ".vpp_xbox2" |
| constexpr int8_t | WAD3_FILENAME_MAX_SIZE = 16 |
| constexpr auto | WAD3_SIGNATURE = sourcepp::parser::binary::makeFourCC("WAD3") |
| constexpr std::string_view | WAD3_EXTENSION = ".wad" |
| constexpr auto | XZP_HEADER_SIGNATURE = sourcepp::parser::binary::makeFourCC("piZx") |
| constexpr auto | XZP_FOOTER_SIGNATURE = sourcepp::parser::binary::makeFourCC("tFzX") |
| constexpr std::string_view | XZP_EXTENSION = ".xzp" |
| constexpr std::string_view | BEE_EXTENSION = ".bee_pack" |
| constexpr std::string_view | BMZ_EXTENSION = ".bmz" |
| constexpr std::string_view | FPK_EXTENSION = ".fpk" |
| constexpr std::string_view | PK3_EXTENSION = ".pk3" |
| constexpr std::string_view | PK4_EXTENSION = ".pk4" |
| constexpr std::string_view | PKZ_EXTENSION = ".pkz" |
| constexpr std::string_view | ZIP_EXTENSION = ".zip" |
| constexpr std::string_view | EXECUTABLE_EXTENSION0 = ".exe" |
| constexpr std::string_view | EXECUTABLE_EXTENSION1 = ".bin" |
| constexpr std::string_view | EXECUTABLE_EXTENSION2 = ".x86_64" |
| constexpr std::string_view | EXAMPLE_EXTENSION = ".example" |
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| ARCHIVE_INDEX | |
| LENGTH | |
| CRC32 | |
| PCK_MD5 | |
| VPK_PRELOADED_DATA | |
Definition at line 7 of file Attribute.h.
|
strong |
|
constexpr |
|
constexpr |
Definition at line 20 of file ExamplePackFileImpl.h.
|
constexpr |
Definition at line 22 of file PackFile.h.
|
constexpr |
Definition at line 23 of file PackFile.h.
|
constexpr |
Definition at line 24 of file PackFile.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 9 of file VPK_VTMB.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |