-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSMF.bt
42 lines (36 loc) · 794 Bytes
/
SMF.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
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
local uint i;
struct {
CHAR Magic[4];
UINT FileCount;
UINT Unknown;
UINT Unknown;
} HEADER <name="File header">;
typedef struct {
UINT Size <name="File size">;
UINT Offset <name="File offset">;
BYTE Data[20];
} FILE_RECORD <optimize=false>;
struct {
FILE_RECORD FR[HEADER.FileCount];
} TABLE <name="File table">;
struct {
for (i = 0; i < HEADER.FileCount; ++i)
{
struct {
FSeek(TABLE.FR[i].Offset);
FSkip(TABLE.FR[i].Size);
} FILE <name= "File">;
};
} FILES <name="Files">;