HIX (File Format)

From Wexos's Wiki
Jump to navigationJump to search

HIX (Hagi IndeX) is part of an archive format found in emulated GameCube and Wii games on some Wii U Virtual Console and Nintendo Switch titles such as Super Mario 3D All-Stars. It works along with HAR files.

File Format

The file byte order is always little endian.

Header

The file starts with the following header:

Offset Type Description
0x00 Char[4] File magic. Always HIDX in ASCII.
0x04 Int32 Number of file entries.

File Entry

Each file entry corresponds to a file from the HAR file. File data is stored directly after the header in the HAR file. The entries have the following structure:

Offset Type Description
0x00 UInt64 File name hash.
0x08 Byte Unknown. Always 0?
0x09 UInt32 File data offset, relative to the start of the HAR file data section.
0x0D UInt3 File length in bytes.

Tools

The following tools can handle HAR files:

  • harhix, a tool made by Atlas that allows extracting the contents from HAR/HIX files.