Line 375:
Line 375:
|0x04||0x4||UInt32||Section Size
|0x04||0x4||UInt32||Section Size
|}
|}
+
+
== usd1 (User Data 1) ==
+
Contains a map with strings as keys and variable values
+
{| class="wikitable" border="1"
+
|-
+
! Offset
+
! Size
+
! Type
+
! Description
+
|-
+
| 0x00 || 0x4 || String || Signature (usd1)
+
|-
+
| 0x04 || 0x4 || UInt32 || Section Size
+
|-
+
| 0x08 || 0x4 || UInt32 || Number of entries (= N)
+
|-
+
| 0x12 || 0x12 * N || Entries[] || Entries
+
|-
+
| 0x12 + 0x12 * N || ? || Variable || Values referred to by the entries
+
|}
+
+
Where an entry is as follows:
+
+
{| class="wikitable" border="1"
+
|-
+
! Offset
+
! Size
+
! Type
+
! Description
+
|-
+
| 0x0 || 0x4 || UInt32 || Key: offset (from start of this entry) to null-terminated ascii string
+
|-
+
| 0x4 || 0x4 || UInt32 || Value: offset (from start of this entry) to a value (type decided by last field)
+
|-
+
| 0x8 || 0x4 || UInt16 || Amount or, if a string, the length of the value(s)
+
|-
+
| 0x10 || 0x2 || UInt16 || Value type
+
|}
+
+
Where the value type can be one of the following:
+
{| class="wikitable" border="1"
+
|-
+
! Name
+
! Value
+
|-
+
| String || 0x0
+
|-
+
| Int || 0x1
+
|}
+
Note: this table likely is incomplete.
==Tools==
==Tools==