-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mission.bt
58 lines (49 loc) · 1.23 KB
/
Mission.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
//------------------------------------------------
//--- 010 Editor v13.0.2 Binary Template
//
// File: Mission.bt
// Authors: WarpZephyr
// Version: 1.0.0
// Purpose: Armored Core Last Raven Mission Binary files
// Category: Games
// File Mask: *.bin
// ID Bytes:
// History:
//------------------------------------------------
LittleEndian();
local int ENTRY_SIZE = 36;
//------------------------------------------------
typedef struct
{
int offset;
local quad pos = FTell();
FSeek(STRING_BASE_ADDRESS + offset);
string str;
FSeek(pos);
} OffsetString <bgcolor=cLtGreen, read=ReadOffsetString, optimize=false>;
string ReadOffsetString(OffsetString &str)
{
return str.str;
}
typedef struct
{
byte unk00[4];
int offset1;
int offset2;
int offset3;
//int unk10;
//int unk14;
//int unk18;
//int unk1C;
//int unk20;
//byte unk24[92];
} Entry <bgcolor=cLtGreen, read=ReadEntry, optimize=false>;
string ReadEntry(Entry &entry)
{
local string str;
return SPrintf(str, "%i %i %i", entry.offset1, entry.offset2, entry.offset3);
}
//------------------------------------------------
int count;
local int STRING_BASE_ADDRESS = (count * ENTRY_SIZE) + 4;
Entry entries[count];