libWiiPy.title.types Module#

Description#

The libWiiPy.title.types module provides shared types used across the title module.

Module Contents#

class libWiiPy.title.types.ContentRecord(content_id: int, index: int, content_type: int, content_size: int, content_hash: bytes)#

Bases: object

A content record object that contains the details of a content contained in a title. This information must match the content stored at the index in the record, or else the content will not decrypt properly, as the hash of the decrypted data will not match the hash in the content record.

content_id#

The unique ID of the content.

Type:

int

index#

The index of this content in the content records.

Type:

int

content_type#

The type of the content.

Type:

int

content_size#

The size of the content when decrypted.

Type:

int

content_hash#

The SHA-1 hash of the decrypted content.

Type:

bytes

content_hash: bytes#
content_id: int#
content_size: int#
content_type: int#
index: int#
class libWiiPy.title.types.ContentType(value)#

Bases: IntEnum

The type of an individual piece of content.

DEVELOPMENT = 2#
DLC = 16385#
HASH_TREE = 3#
NORMAL = 1#
SHARED = 32769#
class libWiiPy.title.types.Region(value)#

Bases: IntEnum

The region of a title.

EUR = 2#
JPN = 0#
KOR = 4#
USA = 1#
WORLD = 3#
class libWiiPy.title.types.TitleType(value)#

Bases: StrEnum

The type of a title.

CHANNEL = '00010001'#
DLC = '00010005'#
GAME = '00010000'#
GAME_CHANNEL = '00010004'#
HIDDEN_CHANNEL = '00010008'#
SYSTEM = '00000001'#
SYSTEM_CHANNEL = '00010002'#