Update 'File Type: Bundle Database'
parent
0833c18caf
commit
2a61b8aa08
1 changed files with 60 additions and 0 deletions
60
File-Type%3A-Bundle-Database.md
Normal file
60
File-Type%3A-Bundle-Database.md
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
**010Editor Template:**
|
||||||
|
|
||||||
|
```bt
|
||||||
|
uint32 format <format=hex>;
|
||||||
|
uint32 num_entries;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint32 version;
|
||||||
|
Assert(version == 0x4);
|
||||||
|
|
||||||
|
uint32 len_name;
|
||||||
|
char name[len_name];
|
||||||
|
|
||||||
|
uint32 len_stream;
|
||||||
|
char stream[len_stream];
|
||||||
|
|
||||||
|
byte platform_specific; // boolean
|
||||||
|
|
||||||
|
byte buffer[20]; // VT2's SDK only ever writes 0 and ignores while reading
|
||||||
|
uint64 file_time; // win32 FILETIME
|
||||||
|
} File;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint64 hash <format=hex>;
|
||||||
|
uint32 num_files;
|
||||||
|
|
||||||
|
File files[num_files] <optimize=false>;
|
||||||
|
} Entry;
|
||||||
|
|
||||||
|
Entry entries[num_entries] <optimize=false>;
|
||||||
|
|
||||||
|
uint32 num_hashes;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint64 hash;
|
||||||
|
uint64 unknown;
|
||||||
|
} ResourceHash;
|
||||||
|
|
||||||
|
ResourceHash hashes[num_hashes];
|
||||||
|
|
||||||
|
if (format <= 5) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32 num_contents;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint64 extension <format=hex>;
|
||||||
|
uint64 name <format=hex>;
|
||||||
|
} Filename;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint64 hash <format=hex>;
|
||||||
|
uint32 num_files;
|
||||||
|
|
||||||
|
Filename files[num_files];
|
||||||
|
} BundleContents;
|
||||||
|
|
||||||
|
BundleContents contents[num_contents] <optimize=false>;
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue