-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathTMH.bt
49 lines (46 loc) · 1.05 KB
/
TMH.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
//------------------------------------------------
//--- 010 Editor v13.0 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
typedef struct{
uint DataSize;
uint flag;
uint ImageType;
ushort width;
ushort height;
local uint Width = width;
local uint Height = height;
local uint Length = Width*Height;
byte Data[DataSize-16];
}Gim_Data;
typedef struct{
int PaletteSize;
int flag;
int PaletteType; //3 - 32 bit color
int ColorCount;
if(PaletteType == 3){
byte data[ColorCount*4];
};
}GIM_Palette;
struct GIM_Image {
int GIMsize;
int GIMFlags[3];
Gim_Data GIMData<optimize=false>;
if(GIMData.ImageType == 3)
GIM_Palette GIMPalette<optimize=false>;
};
struct TMH_Header {
char ResID[8];
int numGIMImage;
int pad0;
GIM_Image gims[numGIMImage]<optimize=false>;
};
TMH_Header header;