-
Notifications
You must be signed in to change notification settings - Fork 28
/
PatchManifest.bt
84 lines (79 loc) · 1.53 KB
/
PatchManifest.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//--------------------------------------
//--- 010 Editor v6.0.1 Binary Template
//
// File:
// Author:
// Revision:
// Purpose:
//--------------------------------------
#include "basics.h"
/*
struct
{
uint16_t MAGIC;
uint8_t _1;
uint8_t key_size_a;
uint8_t size_b;
uint8_t key_size_c;
uint8_t size_d;
uint16_t_BE num_entries;
uint8_t _field9;
} header;
char unk[19-3];
char encoding_key[0x10];
uint32_t_BE uncompressed;
uint32_t_BE compressed;
char encoding_format_length;
char encoding_format[encoding_format_length];
struct
{
uint8_t key[header.key_size_a];
uint8_t unk1[0x10];
uint32_t_BE offset;
local int tmp = FTell();
FSeek (offset._);
struct
{
local int eof_ = FTell() + (1 << header.size_d);
do
{
struct
{
uint8_t subentries_count;
uint8_t key[header.key_size_a];
uint40_t_BE unk;
struct
{
uint8_t key[header.key_size_a];
uint40_t_BE unk;
uint8_t key2[header.key_size_c];
uint40_t_BE unk2;
} subentries[subentries_count]<optimize=false>;
} _;
} while (ReadByte() && eof_ > FTell());
} _unk<optimize=false>;
FSeek (tmp);
} entries[header.num_entries._]<optimize=false>;
*/
FSeek (0xe4e191);
void require_zero (int count)
{
while (count --> 0)
{
if (ReadByte())
{
//int ____NON_NULL____[0xffffffff];
}
FSeek (FTell() + 1);
}
}
struct{
char ___[0xf];
uint32_t_BE unk0;
require_zero (4);
uint32_t_BE unk1;
require_zero (4);
uint16_t_BE unk1;
require_zero (2);
require_zero (4*3+1);
} a[81];