ECTicketInfo

Easily accessible ticket information

ECTicketInfo handles representing a ticket for a given title ID. It provides usable data about the status of the title on the Wii.

You do not want to instantiate this object yourself. Instead, obtain one via ec.getTicketInfos(titleId) and iterate through all ECTicketInfos until you find what is desired. This will populate all ECTicketInfo available with usable data.

For example:

// Obtains tickets for the System Menu
var infos = ec.getTicketInfos("0000000100000002");

// Ensure you check infos.length. In this example, we do not.
var ticket = infos.get(0);

Properties

Property Name
Discussion

ticket.ticketId

The ticket ID of the retrieved ticket.

ticket.titleId

The title ID this ticket is intended for.

ticket.nLimits

The number of limits available for this ticket.

ticket.limits

ticket.version

The file version of this ticket, which should be 0.

ticket.deviceId

The device ID this ticket is specified for.

ticket.ticketVersion

The version of this title.

ticket.licenseType

The type of license this ticket represents. TODO: determine possible values

ticket.cidxMask

A base64-encoded field of some field within the ticket. TODO: determine

ticket.reserved

A base64-encoded field of some field within the ticket. TODO: determine

ECTicketInfos

ECTicketInfos manages multiple of an ECTicketInfo. It is intended to be an immutable array, and its values only be retrived, not set.

Properties

Property Name
Discussion

ticket.length

Returns the length of the tracked array.

ticket.get(index)

ticket.set

This array is considered immutable. Despite it existing, attempting to call or access this property results in an error.

Last updated