-
Notifications
You must be signed in to change notification settings - Fork 9
/
MHFU StringTables.bt
42 lines (39 loc) · 1004 Bytes
/
MHFU StringTables.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
//------------------------------------------------
//--- 010 Editor v12.0.1 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
local int i;
typedef struct(int fileStart){
int offset;
local int ret = FTell();
FSeek(offset + fileStart);
string data;
FSeek(ret);
}OffsetString;
string ReadOffsetString(OffsetString &o){
return o.data;
};
typedef struct(int fileStart){
local int stringCount = 0;
do{
stringCount++;
OffsetString sData(fileStart)<read=ReadOffsetString,optimize=false>;
}while(ReadInt() != -1);
}StringTable;
struct Header{
int table_count;
int unkn;//might be versioning? set to 8 on every EN file I've looked at
int table_offsets[table_count]<optimize=false>;
for(i=0;i<table_count;i++){
FSeek(table_offsets[i]);
StringTable table(table_offsets[i]);
};
}header;