Photo Channel/SaveData

From WiiBrew
Jump to navigation Jump to search

Introduction

The files "photo_i.dat" and "photo_b.dat" can be found in the Photo Channel 1.1's save data location (title\00010002\48415941\data\noerase). These are used to display the photo you have selected to show in the Wii Menu.

File Format

The files start with this header:

typedef struct
{
    char sig[4]; // always 0x48415941 ('HAYA' in ASCII)
    u32 size; // Size of the whole file
    u32 crc32; // CRC32 of the file (it does the checksumming after the CRC32)
    u32 width; // Width of the image
    u32 height; // Height of the image
    u32 unk; // This is always 0x10000000
    u8 pad[8];
} photo_file;

Then after the header, it contains texture data that is in RGB565 format.