In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/title/00000001/00000002/data/setting.txt"

From WiiBrew
< /title‎ | 00000001‎ | 00000002‎ | data
Jump to navigation Jump to search
(→‎AREA: found some evidence to disprove the correlation between how the wii number stores the region and this, so moved this back to the wii number page)
(Add RVA values)
Line 8: Line 8:
  
 
=== MODEL ===
 
=== MODEL ===
The RVL-xxx model. Set to [[RVL-001]] for [[vWii]].
+
The RVL-xxx model. Set to [[RVL-001]] for [[vWii]]. Set to [[RVT-001]] for [[RVA]].
  
 
=== DVD ===
 
=== DVD ===
Unknown, possibly related to [[Disc Channel]] DVD icon?
+
Unknown, possibly related to [[Disc Channel]] DVD icon, or to a disc drive being present?
  
 
=== MPCH ===
 
=== MPCH ===
Unknown
+
Unknown. Example value: 0x7FFE
  
 
=== CODE ===
 
=== CODE ===
Some internal console-unique number
+
Some internal console-unique number. Set to YYY for [[RVA]].
  
 
=== SERNO ===
 
=== SERNO ===
Serial number
+
Serial number. Set to dummy value 98765432 for [[RVA]].
  
 
=== VIDEO ===
 
=== VIDEO ===
NTSC or PAL video mode
+
NTSC or PAL.
  
 
=== GAME ===
 
=== GAME ===

Revision as of 05:14, 11 December 2023

/title/00000001/00000002/data/setting.txt is an encrypted file containing console information.[1]

Fields

All fields are stored in the format KEY=value on separate lines.

AREA

This seems to correlate to the system menu region (The letter that appears after the system menu version), however, this does not seem to correlate to how the Wii Number enumerates them.[check]

MODEL

The RVL-xxx model. Set to RVL-001 for vWii. Set to RVT-001 for RVA.

DVD

Unknown, possibly related to Disc Channel DVD icon, or to a disc drive being present?

MPCH

Unknown. Example value: 0x7FFE

CODE

Some internal console-unique number. Set to YYY for RVA.

SERNO

Serial number. Set to dummy value 98765432 for RVA.

VIDEO

NTSC or PAL.

GAME

Another region, possibly set by rgnsel?

Encryption

setting.txt is encrypted by the following symmetric algorithm:

unsigned int key = 0x73B5DBFA;
int i, len;

if (is_enc)
{
	len = 256;
} else {
	len = strlen(buf);
}

for(i = 0; i < len; i++)
{
	buf_ptr[i] ^= key & 0xff;
	key = (key << 1) | (key >> 31);
}

References

1. https://github.com/GaryOderNichts/vWii-Decaffeinator/blob/master/src/utils/setting_generator.c