Image (.raw)

Image files are raw textures outside the data files. These are used for textures such as cursors, loading screen and galleries.

Format

The format starts with a header, in the header is the offset and length of the image data. The magic is always RAW! in big-endian.

struct RAWHeader
{
    uint32_t magic;
    uint32_t pixelDataStart;
    uint32_t pixelDataLen;
    uint32_t mode;
    uint32_t attr;
    uint32_t width;
    uint32_t height;
}

Modes

The modes in the header refer to image formats, on PC they are the following formats.

Mode Format
0 A1R5G5B5
1 R5G6B5
2 A4R4G4B4
3 A8R8G8B8
5 DXT1
6 DXT2
7 DXT3
8 DXT4
9 DXT5
10 A8R8G8B8
18 A8