wiithon.disc.structs.ticket_time_limit module

class wiithon.disc.structs.ticket_time_limit.TicketTimeLimit[source]

Bases: object

Time limit entry in a Wii Ticket (v0)

The Ticket contains 8 consectuvive TicketTimeLimit entries that can restrict content usage

References

https://wiibrew.org/wiki/Ticket

enable_time_limit

int - Limit type (0=disabled, 1=time in minutes, 3=disabled, 4=launch count limit)

time_limit

int - Maximum value depending on type

classmethod read(stream)[source]

Read the time limit entry from a binary Stream.

Parameters:

stream (BinaryIO) – Binary IO stream

Return type:

TicketTimeLimit

Returns:

Time limit entry

write(stream)[source]

Write the time limit entry to a binary stream.

Parameters:

stream (BinaryIO) – Binary IO stream

Return type:

None

Returns:

None