libWiiPy.nand.sys Module#
Description#
The libWiiPy.nand.sys
module provides support for editing system files used on the Wii. Currently, it only offers support for uid.sys
, which keeps a record of the Title IDs of every title launched on the console, assigning each one a unique ID.
Module Contents#
- class libWiiPy.nand.sys.UidSys#
Bases:
object
A UidSys object to parse and edit the uid.sys file stored in /sys/ on the Wii’s NAND. This file is used to track all the titles that have been launched on a console.
- uid_entries#
The entries stored in the uid.sys file.
- Type:
List[_UidSysEntry]
- add(title_id: str | bytes) int #
Adds a new Title ID to the uid.sys file and returns the UID assigned to that title. The new entry will only be added if the provided Title ID doesn’t already have an assigned UID.
- Parameters:
title_id (str, bytes) – The Title ID to add.
- Returns:
The UID assigned to the new Title ID.
- Return type:
int
- create() None #
Creates a new uid.sys file and initializes it with the standard first entry of 1-2 with UID 4096. This allows for setting up a uid.sys file without having to load an existing one.
- dump() bytes #
Dumps the UidSys object back into a uid.sys file.
- Returns:
The raw data of the uid.sys file.
- Return type:
bytes
- load(uid_sys: bytes) None #
Loads the raw data of uid.sys and parses it into a list of entries.
- Parameters:
uid_sys (bytes) – The data of a uid.sys file.