libWiiPy.nand.setting Module#
The libWiiPy.nand.setting
module provides support for handling the Wii’s setting.txt
file. This file is stored as part of the Wii Menu’s save data (stored in /title/00000001/00000002/data/
) and is an encrypted text file that’s primarily used to store your console’s serial number and region information.
This module allows you to encrypt or decrypt this file, and exposes the keys stored in it for editing.
Module Contents#
- class libWiiPy.nand.setting.SettingTxt#
Bases:
object
A SettingTxt object that allows for decrypting and then parsing a setting.txt file from the Wii.
- area#
The region of the System Menu this file matches with.
- Type:
str
- model#
The model of the console, usually RVL-001 or RVL-101.
- Type:
str
- dvd#
Unknown, might have to do with indicating support for scrapped DVD playback capabilities.
- Type:
int
- mpch#
Unknown, generally accepted value is “0x7FFE”.
- Type:
str
- code#
Unknown code, may match with manufacturer code in serial number?
- Type:
str
- serial_number#
Serial number of the console.
- Type:
str
- video#
Video mode, either NTSC or PAL.
- Type:
str
- game#
Another region code, possibly set by the hidden region select channel.
- Type:
str
- dump() bytes #
Dumps the SettingTxt object back into an encrypted bytes that the Wii can load.
- Returns:
The setting.txt file as encrypted bytes.
- Return type:
bytes
- dump_decrypted() str #
Dumps the SettingTxt object into a decrypted string.
- Returns:
The setting.txt file as decrypted text.
- Return type:
str
- load(setting_txt: bytes) None #
Loads the raw data of an encrypted setting.txt file and decrypts it to parse its arguments
- Parameters:
setting_txt (bytes) – The data of an encrypted setting.txt file.
- load_decrypted(setting_txt: str) None #
Loads the raw data of a decrypted setting.txt file and parses its arguments
- Parameters:
setting_txt (str) – The data of a decrypted setting.txt file.