libWiiPy.title.iospatcher Module#

The libWiiPy.title.iospatcher module provides support for applying various binary patches to IOS’ ES module. These patches and what they do can be found attached to the methods used to apply them.

Module Contents#

class libWiiPy.title.iospatcher.IOSPatcher#

Bases: object

An IOSPatcher object that allows for applying patches to IOS WADs loaded into Title objects.

title#

The loaded Title object to be patched.

Type:

Title

es_module_index#

The content index that ES resides in and where ES patches are applied.

Type:

int

dip_module_index#

The content index that DIP resides in and where DIP patches are applied. -1 if DIP patches are not applied.

Type:

int

dump() Title#

Returns the patched Title object.

Returns:

The patched Title object.

Return type:

Title

load(title: Title) None#

Loads a Title object containing an IOS WAD and locates the content containing the ES module that needs to be patched.

Parameters:

title (Title) – A Title object containing the IOS to be patched.

patch_all() int#

Applies all patches to patch in fakesigning, ES_Identify access, /dev/flash access, and the version downgrading patch.

Returns:

The number of patches successfully applied.

Return type:

int

patch_drive_inquiry() int#

Patches out IOS’ drive inquiry on startup, allowing IOS to load without a disc drive. Only required/useful if you do not have a disc drive connected to your console.

This drive inquiry patch is EXPERIMENTAL, and may introduce unexpected side effects on some consoles.

Returns:

The number of patches successfully applied.

Return type:

int

patch_es_identify() int#

Patches the ability to call ES_Identify back into the IOS’ ES module to allow for changing the permissions of a title.

Returns:

The number of patches successfully applied.

Return type:

int

patch_fakesigning() int#

Patches the trucha/fakesigning bug back into the IOS’ ES module to allow it to accept fakesigned TMDs and Tickets.

Returns:

The number of patches successfully applied.

Return type:

int

patch_nand_access() int#

Patches the ability to directly access /dev/flash back into the IOS’ ES module to allow for raw access to the Wii’s filesystem.

Returns:

The number of patches successfully applied.

Return type:

int

patch_version_downgrading() int#

Patches the ability to downgrade installed titles into IOS’ ES module.

Returns:

The number of patches successfully applied.

Return type:

int