Difference between revisions of "/shared2/sys/SYSCONF"
(Updated descriptions) |
(Add table of types) |
||
Line 4: | Line 4: | ||
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. | 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''' | ||
+ | {{ Table }} | ||
+ | {{ Table/Header | Name | Value }} | ||
+ | {{ Table/Row | BIGARRAY | 1 }} | ||
+ | {{ Table/Row | SMALLARRAY | 2 }} | ||
+ | {{ Table/Row | BYTE | 3 }} | ||
+ | {{ Table/Row | SHORT | 4 }} | ||
+ | {{ Table/Row | LONG | 5 }} | ||
+ | {{ Table/Row | ??? | 6 }} | ||
+ | {{ Table/Row | BOOL | 7 }} | ||
+ | |} | ||
Some settings from the file: | Some settings from the file: |
Revision as of 16:12, 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.