SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
Options.h
Go to the documentation of this file.
1#pragma once
2
3#include <sourcepp/Math.h>
4
5namespace vpkpp {
6
7enum class EntryCompressionType : int16_t {
8 NO_OVERRIDE = -1,
9
10 // Matches MZ_COMPRESS_METHOD_<type> defines
11 NO_COMPRESS = 0,
12 DEFLATE = 8,
13 BZIP2 = 12,
14 LZMA = 14,
15 ZSTD = 93,
16 XZ = 95,
17};
18
22
25
27 bool gma_writeCRCs = true;
28
31};
32
36
39
41 uint16_t vpk_preloadBytes = 0;
42
44 bool vpk_saveToDirectory = false;
45};
46
47} // namespace vpkpp
Definition: Attribute.h:5
EntryCompressionType
Definition: Options.h:7
EntryCompressionType zip_compressionTypeOverride
BSP/ZIP - Override compression type of all stored entries.
Definition: Options.h:21
bool gma_writeCRCs
GMA - Write CRCs for files and the overall GMA file when baking.
Definition: Options.h:27
bool vpk_generateMD5Entries
VPK - Generate MD5 hashes for each file (VPK v2 only)
Definition: Options.h:30
int16_t zip_compressionStrength
BSP/VPK/ZIP - Compression strength.
Definition: Options.h:24
uint16_t vpk_preloadBytes
VPK - The amount in bytes of the file to preload. Maximum is controlled by VPK_MAX_PRELOAD_BYTES (for...
Definition: Options.h:41
EntryCompressionType zip_compressionType
BSP/ZIP - The compression format.
Definition: Options.h:35
bool vpk_saveToDirectory
VPK - Save this entry to the directory VPK.
Definition: Options.h:44
int16_t zip_compressionStrength
BSP/ZIP - The compression strength.
Definition: Options.h:38