libWiiPy.media.banner Module#

Description#

The libWiiPy.media.banner module is essentially a stub at this point in time. It only provides one dataclass that is likely to become a traditional class when fully implemented. It is not recommended to use this module for anything yet.

Module Contents#

class libWiiPy.media.banner.IMD5Header(magic: str, file_size: int, zeros: int, md5_hash: bytes)#

Bases: object

An IMD5Header object that contains the properties of an IMD5 header. These headers precede the data of banner.bin and icon.bin inside the banner (00000000.app) of a channel, and are used to verify the data of those files.

An IMD5 header is always 32 bytes long.

Variables:
  • magic – Magic number for the header, should be “IMD5”.

  • file_size – The size of the file this header precedes.

  • zeros – 8 bytes of zero padding.

  • md5_hash – The MD5 hash of the file this header precedes.

file_size: int#
magic: str#
md5_hash: bytes#
zeros: int#