wiithon.disc.structs.tmd_content module

class wiithon.disc.structs.tmd_content.TMDContent[source]

Bases: object

Content metadata (0x24 bytes)

References

https://wiibrew.org/wiki/Title_metadata

id

Unique content identifier

index

Position in the content list

content_type

Content type (0x0001: Normal, 0x4001: DLC, 0x8001: Shared)

size

Content size in bytes

hash

SHA-1 integrity hash (20 bytes)

classmethod read(stream)[source]

Read and parse a CMD from a binary stream

Parameters:

stream (BinaryIO) – Binary IO stream

Return type:

TMDContent

Returns:

TMDContent

write(stream)[source]

Write content to a binary stream

Parameters:

stream (BinaryIO) – Binary IO stream

Return type:

None

Returns:

None