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

Difference between revisions of "/shared2/sys/SYSCONF"

From WiiBrew
< /shared2‎ | sys
Jump to navigation Jump to search
(Add table of types)
(Add type for IPL.NIK)
Line 34: Line 34:
 
{{ Table/Row | IPL.IDL | SMALLARRAY | 2 | 0,1;0,1 | Shutdown mode and idle LED mode }}
 
{{ Table/Row | IPL.IDL | SMALLARRAY | 2 | 0,1;0,1 | Shutdown mode and idle LED mode }}
 
{{ Table/Row | IPL.UPT | BYTE | 1 |2,? | Unknown }}
 
{{ Table/Row | IPL.UPT | BYTE | 1 |2,? | Unknown }}
{{ Table/Row | IPL.NIK | SMALLARRAY | 0x16 | string? | Console Nickname }}
+
{{ Table/Row | IPL.NIK | SMALLARRAY | 0x16 | utf16be string, including trailing NUL | Console Nickname }}
 
{{ Table/Row | IPL.AR | BYTE | 1 | 0,1 | Aspect ratio setting. 0: 4:3 1: 16:9 }}
 
{{ Table/Row | IPL.AR | BYTE | 1 | 0,1 | Aspect ratio setting. 0: 4:3 1: 16:9 }}
 
{{ Table/Row | IPL.SSV | BYTE | 1 | 0,1 | Screen Saver off/on (burn-in reduction) }}
 
{{ Table/Row | IPL.SSV | BYTE | 1 | 0,1 | Screen Saver off/on (burn-in reduction) }}

Revision as of 17:07, 20 August 2008

The SYSCONF contains many Wii system settings.

The format of the file is fairly simple. Its size is 0x4000, and tt contains a header that reads "SCv0", followed by the number of settings in the file (u16), and then a list of offsets of each setting (u16). Each setting contains first a type identifier (u8), then a name (char*), and a value (varies, based on type). libogc/marcan's conf.c contains code to parse this information.

Conventions for adding or removing settings to the file are currently unknown, but shouldn't be too hard to determine--although that's not necessarily a useful function.

Types Template:Table Template:Table/Header Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row |}

Some settings from the file:

BT Settings Template:Table Template:Table/Header Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row |}

IPL Settings Template:Table Template:Table/Header Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row Template:Table/Row |}

IPL.SADR values: Offset 0 is a Country Code and offset 1 seems to be a more localized region code.