-
Notifications
You must be signed in to change notification settings - Fork 1
Var Files
github-actions[bot] edited this page Jun 15, 2023
·
6 revisions
Every var file has two parts: a header and a number of entries, where an entry contains the data for a single variable. Usually, var files contain just one entry; in these cases, there's not much distinction between a var and an entry for the purposes of messing with its data.
Section | Subsection | Section Offset | Length | Type | Description | Notes |
---|---|---|---|---|---|---|
Header | Magic | 0 | 8 | String |
The file magic for the var |
|
Extra | 8 | 2 | Bytes |
Extra export bytes for the var |
|
|
Product ID | 10 | 1 | Bytes |
The product ID for the var |
|
|
Comment | 11 | 42 | String |
The comment attached to the var |
Section | Subsection | Section Offset | Length | Type | Description | Notes |
---|---|---|---|---|---|---|
Meta Length | Meta Length | 0 | 2 | Integer |
The length of the meta section of the entry |
|
Meta | Data Length | 0 | 2 | Integer |
The length of the data section of the entry | |
Type ID | 2 | 1 | Bytes |
The type ID of the entry |
|
|
Name | 3 | 8 | Varies | The name of the entry |
|
|
Version* | 11 | 1 | Integer |
The version number of the entry |
|
|
Archived* | 12 | 1 | Boolean |
Whether the entry is archived | ||
Data Length | Data Length | 0 | 2 | Integer |
The length of the data section of the entry |
|
Data | ... | ... | ... | ... | The data section of the entry |
|
Section | Subsection | Section Offset | Length | Type | Description | Notes |
---|---|---|---|---|---|---|
Header | Header | 0 | 53 | TIHeader |
The var's header | |
Entry Length | 53 | 2 | Integer |
The total length of all entries in the var |
|
|
Entries | Entry 1 | 0 | ... | TIEntry |
The first entry in the var | |
... | ... | ... | TIEntry |
Subsequent entries in the var |
|
|
Checksum | Checksum | 0 | 2 | Bytes |
The checksum for the var |
|