wiithon.disc.structs.partition_entry module

class wiithon.disc.structs.partition_entry.WiiPartitionEntry(offset, part_type)[source]

Bases: object

Entry in the Wii partition table. https://wiibrew.org/wiki/Wii_disc#Partitions_information

Parameters:
  • offset (int)

  • part_type (int)

classmethod read(stream)[source]
Parameters:

stream (BinaryIO)

Return type:

WiiPartitionEntry

write(stream)[source]
Parameters:

stream (BinaryIO)

Return type:

None

get_readable_part_type()[source]
Return type:

str

wiithon.disc.structs.partition_entry.read_parts(stream)[source]

Read the partition table from a Wii disc.

The table is located at offset 0x40000 and contains up to 4 groups. Each group has a count + offset to its entries. :type stream: BinaryIO :param stream:

Return type:

list[WiiPartitionEntry]

Returns:

Parameters:

stream (BinaryIO)