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:
objectA 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:
IntEnumThe type of an individual piece of content.
- DEVELOPMENT = 2#
- DLC = 16385#
- HASH_TREE = 3#
- NORMAL = 1#
- SHARED = 32769#