-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmsaustin_dfs.bt
48 lines (44 loc) · 1.01 KB
/
msaustin_dfs.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
// Template created by Mark "hogsy" Sowden <[email protected]>
/**
* Each entry is 24 bytes
* Num files is 16 bytes into header
* Below is confirmed for The Hobbit (2003)
*/
struct Header
{
int32_t magic; // SFDX
uint32_t version;// 1 for The Hobbit, 3 for Area 51
// everything below assumes version 1 for now...
int32_t unknown0;
int32_t unknown1;
if ( version >= 3 )
{
int32_t unknown2;
}
uint32_t numFiles;
int32_t unknown00;
int32_t stringTableSize;
int32_t unknown02;
int32_t unknown03;
if ( version >= 3 )
{
int32_t unknown04;
}
uint32_t stringTableOffset;
uint32_t totalSize;// size of the 000 file
};
struct Header header;
struct Index
{
uint32_t nameOffset; // 'SFX_W'
uint32_t nameExtendedOffset;// 'EAPONS'
uint32_t dirOffset; // 'COMMON/'
uint32_t extensionOffset; // '.TXT'
if ( header.version >= 3 )
{
uint32_t unknown0;
}
uint32_t offset;// offset into the .000 file
uint32_t size; // length of the file from offset
};
struct Index indices[ header.numFiles ];