Documentation
¶
Overview ¶
"triad" describes a storage unit used in the game files. It consists of a "main" file (no extension), a "stream" file (.stream), and a "GPU" file (.gpu_resources). The stream and GPU files are optional.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataDir ¶
func OpenDataDir ¶
type HeaderData ¶
type HeaderData struct {
MagicNum [4]byte // 0x11 0x00 0x00 0xF0
NumTypes uint32
NumFiles uint32
Unk00 [20]byte
ApproxMainSize uint64 // aligned by 256 / weirdly offset
ApproxGPUSize uint64 // aligned by 256 / weirdly offset
Unk01 [24]byte
}
Unk means the data's purpose is unknown.
type Triad ¶
type Triad struct {
MainPath string
StreamPath string // optional
GPUpath string // optional
Header HeaderData
Types []TypeData
Files []FileData
}
A triad consists of a main file, a stream file and a GPU resource file. The stream file and GPU resource file are optional.
func (*Triad) HasDataType ¶
Click to show internal directories.
Click to hide internal directories.