diff --git a/File-Type---Bundle-Database.md b/File-Type---Bundle-Database.md index 1f71864..3f82aff 100644 --- a/File-Type---Bundle-Database.md +++ b/File-Type---Bundle-Database.md @@ -1,6 +1,7 @@ **010Editor Template:** ```bt + uint32 format ; uint32 num_entries; @@ -16,7 +17,22 @@ typedef struct { byte platform_specific; // boolean - byte buffer[20]; // VT2's SDK only ever writes 0 and ignores while reading + // byte buffer[20] ; + byte buffer[20]; + + local int is_0 = true; + local int i = 0; + + for (i = 0; i < 15; i++) { + if (buffer[i] != 0) { + is_0 = false; + } + } + + if (!is_0) { + Warning("Unknown 20-byte buffer is not 0"); + } + uint64 file_time; // win32 FILETIME } File; @@ -32,8 +48,8 @@ Entry entries[num_entries] ; uint32 num_hashes; typedef struct { - uint64 hash; - uint64 unknown; + uint64 bundle ; + uint64 resource_hash ; } ResourceHash; ResourceHash hashes[num_hashes];