2
Fork 0
Code Activity
Var Dump:
dumpVar: only available in dev mode
Mailing List
010-templates/vt2_compressed_bundle.bt

38 lines
No EOL
889 B
Text

//------------------------------------------------
//--- 010 Editor v10.0 Binary Template
//
// File:
// Authors:
// Version:
// Purpose: Vermintide 2 Compressed Bundle
// Category: Vermintide 2
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
uint32 format <format=hex>;
uint32 inflate_size;
uint32 padding <hidden=true>;
typedef struct {
uint32 block_size;
uchar data[block_size];
} Block <read=ReadBlock>;
string ReadBlock(Block &block)
{
if(exists(block.block_size)) {
string s;
SPrintf(s, "%lg", block.block_size);
return s;
} else {
return "";
}
}
// No clue how to do "until there is nothing left" with this, so I'll just make up a number
// This is good enough to show the concept anyways
local uint block_count = 100;
Block blocks[block_count] <optimize=false>;