libWiiPy.title.util Module#

The libWiiPy.title.util module provides common utility functions internally. It is not designed to be used directly.

Module Contents#

libWiiPy.title.util.title_ver_dec_to_standard(version: int, title_id: str, vwii: bool = False) str#

Converts a title’s version from decimal form (vXXX, the way the version is stored in the TMD/Ticket) to its standard and human-readable form (vX.X). The Title ID is required as some titles handle this version differently from others. For the System Menu, the returned version will include the region code (ex. 4.3U).

Parameters:
  • version (int) – The version of the title, in decimal form.

  • title_id (str) – The Title ID that the version is associated with.

  • vwii (bool) – Whether this title is for the vWii or not. Only relevant for the System Menu.

Returns:

The version of the title, in standard form.

Return type:

str

libWiiPy.title.util.title_ver_standard_to_dec(version: str, title_id: str) int#

Converts a title’s version from its standard and human-readable form (vX.X) to its decimal form (vXXX, the way the version is stored in the TMD/Ticket). The Title ID is required as some titles handle this version differently from others. For the System Menu, the supplied version must include the region code (ex. 4.3U) for the conversion to work correctly.

Parameters:
  • version (str) – The version of the title, in standard form.

  • title_id (str) – The Title ID that the version is associated with.

Returns:

The version of the title, in decimal form.

Return type:

int