Changes

1,561 bytes added ,  17:58, 19 July 2022
add IPL.APD, remove "?" from offsets for NET.WCPC & IPL.SND (see talk page), indicate that secret questions differ by language, add struct for IPL.SADR.
Line 32: Line 32:  
| [[#Item structure|Items]], each one at an offset specified by "Item offsets"<br/>Unused offsets are zeroed completely
 
| [[#Item structure|Items]], each one at an offset specified by "Item offsets"<br/>Unused offsets are zeroed completely
 
|-
 
|-
| <code>0x3FB0</code> ?
+
| <code>0x3FAE</code> ?
 
| 2 bytes each
 
| 2 bytes each
| [[#Lookup table for settings|Lookup table for specific item names]], 38 entries long. When the value is non-zero, it contains the offset where the item offset is stored (name LUT → item offset → actual item)
+
| [[#Lookup table for settings|Lookup table for specific item names]], 39 entries long. When the value is non-zero, it contains the offset where the item offset is stored (name LUT → item offset → actual item)
 
|-
 
|-
 
| <code>0x3FFC</code>  
 
| <code>0x3FFC</code>  
Line 109: Line 109:  
=== Lookup table for settings ===
 
=== Lookup table for settings ===
 
The end of the SYSCONF file acts as lookup table, supposedly to make finding settings easier/quicker. A lookup looks like this:
 
The end of the SYSCONF file acts as lookup table, supposedly to make finding settings easier/quicker. A lookup looks like this:
# Seek 80 bytes (2 bytes per entry, 38 known entries at this point, plus 4 bytes for the <code>SCed</code> marker) backwards from the end of the file and read 76 bytes to obtain the lookup table.
+
# Seek 82 bytes (2 bytes per entry, 39 known entries at this point, plus 4 bytes for the <code>SCed</code> marker) backwards from the end of the file and read 78 bytes to obtain the lookup table.
 
# Read the desired setting offset. In case this value is <code>0x0000</code>, the [[System Menu]] falls back to searching for the entry (otherwise [[Dolphin]] generated SYSCONF files would not work).
 
# Read the desired setting offset. In case this value is <code>0x0000</code>, the [[System Menu]] falls back to searching for the entry (otherwise [[Dolphin]] generated SYSCONF files would not work).
 
# When non-zero, it represents an offset in the Item offset list. Seek to the value read, and read another 2 bytes from there.
 
# When non-zero, it represents an offset in the Item offset list. Seek to the value read, and read another 2 bytes from there.
Line 122: Line 122:  
! File offset
 
! File offset
 
! Setting
 
! Setting
 +
|-
 +
| <code>0x3FAE</code>
 +
| <code>IPL.APD</code>
 
|-
 
|-
 
| <code>0x3FB0</code>
 
| <code>0x3FB0</code>
Line 169: Line 172:  
|-  
 
|-  
 
| <code>0x3FCE</code>
 
| <code>0x3FCE</code>
| <code>NET.WCPC</code>?
+
| <code>NET.WCPC</code>
 
|-  
 
|-  
 
| <code>0x3FD0</code>
 
| <code>0x3FD0</code>
Line 184: Line 187:  
|-  
 
|-  
 
| <code>0x3FD8</code>
 
| <code>0x3FD8</code>
| <code>IPL.SND</code>?
+
| <code>IPL.SND</code>
 
|-  
 
|-  
 
| <code>0x3FDA</code>
 
| <code>0x3FDA</code>
Line 294: Line 297:  
! Values  
 
! Values  
 
! Description  
 
! Description  
 +
|-
 +
| IPL.APD
 +
| LONG
 +
| 4
 +
| 0, 60, 120, ..., 720
 +
| Auto power-down (minutes, 0=never)
 
|-
 
|-
 
| IPL.AR
 
| IPL.AR
Line 388: Line 397:  
| BIGARRAY
 
| BIGARRAY
 
| 0x100A
 
| 0x100A
| struct
+
| [[#IPL.SADR|struct]]
| "Simple Address" Contains some region info<br/>Offset 0 is a [[Country Codes|Country Code]] and offset 1 seems to be a more localized region code.
+
| "Simple Address"
 
|-
 
|-
 
| IPL.SND
 
| IPL.SND
Line 677: Line 686:     
==== Secret Questions ====
 
==== Secret Questions ====
 +
Questions differ by language. These are the English questions.
 +
<!-- re: not just different languages, but the questions being asked are different. -->
 +
<!-- French Q0: Quelle était votre matière préférée à l'école? What was your favourite subject in school? -->
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 699: Line 711:  
| 5
 
| 5
 
| "If you could go anywhere, where would you go?"
 
| "If you could go anywhere, where would you go?"
 +
|}
 +
 +
=== IPL.SADR ===
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Type
 +
! Size
 +
! Value
 +
|-
 +
| <code>0x0000</code>
 +
| Word
 +
| <code>0x0002</code>
 +
| Array Size (minus 1); here: <code>0x1007</code> for 0x1008 bytes
 +
|-
 +
| <code>0x0002</code>
 +
| Byte
 +
| <code>0x0001</code>
 +
| Country code
 +
|-
 +
| <code>0x0003</code>
 +
| Byte
 +
| <code>0x0001</code>
 +
| Region code
 +
|-
 +
| <code>0x0004</code>
 +
| Word
 +
| <code>0x0002</code>
 +
| City code (where relevant, e.g. [[News Channel]], [[Forecast Channel]])
 +
|-
 +
| <code>0x0006</code>
 +
| UTF16BE String
 +
| <code>0x0080</code>
 +
| Japanese country name
 +
|-
 +
| <code>0x0086</code>
 +
| until
 +
| <code>0x0805</code>
 +
| Repeats up to a total of 16 entries (Japanese, English, German, French, Spanish, Italian, Dutch,<!--Simp. Chinese, Trad. Chinese, Korean, 6 undefined--> 9 undefined).
 +
|-
 +
| <code>0x0806</code>
 +
| UTF16BE String
 +
| <code>0x0080</code>
 +
| Japanese region name
 +
|-
 +
| <code>0x0886</code>
 +
| until
 +
| <code>0x1005</code>
 +
| Repeats up to a total of 16 entries (same order).
 +
|-
 +
| <code>0x1006</code>
 +
| Word
 +
| <code>0x0002</code>
 +
| Latitude (N+/S-, measured in increments of 45/8192 degree, allowing up to 180°, though latitude never exceeds 90°)
 +
|-
 +
| <code>0x1008</code>
 +
| Word
 +
| <code>0x0002</code>
 +
| Longitude (E+/W-, measured in increments of 45/8192 degree, allowing up to 180°)
 
|}
 
|}
    
{{Navbox filebrowser}}
 
{{Navbox filebrowser}}
18

edits