pub struct BundleSpec {
pub format: u32,
pub version_player: Vec<u8>,
pub version_engine: Vec<u8>,
pub info_codec: TestCodec,
pub data_codec: TestCodec,
pub block_size: usize,
pub info_at_end: bool,
pub entries: Vec<EntrySpec>,
pub extra_flags: u32,
pub block_overrides: Vec<BlockOverride>,
pub truncate_to: Option<usize>,
pub encrypted: bool,
}Expand description
A UnityFS bundle.
Fields§
§format: u32The format (6, 7 or 8).
version_player: Vec<u8>version_player.
version_engine: Vec<u8>version_engine.
info_codec: TestCodecThe blocks-info codec.
data_codec: TestCodecThe data codec.
block_size: usizeUncompressed block size; the data is cut into blocks of this size.
info_at_end: boolBlocks info at the end of the file (flag 0x80).
entries: Vec<EntrySpec>Entries, in directory order.
extra_flags: u32Extra data flags, combined with a bitwise or (0x200 block-info padding, 0x400 the old encryption bit, …).
block_overrides: Vec<BlockOverride>Per-block overrides.
truncate_to: Option<usize>Cut the finished file to this length (a truncated last block).
encrypted: boolSets the encryption flag of the engine’s flag set (0x200 under
ArchiveFlagsOld, 0x1000 under ArchiveFlags) and writes what
ArchiveStorageDecryptor(reader) reads after the data flags
(helpers/ArchiveStorageManager.py): a u32, then two vectors of 16
and 16 bytes and a skipped byte, all zeros. A UnityCN key cannot open
it (its signature check fails); a test’s own decryptor can.