Settings services: Difference between revisions

m Remove incorrect endianness
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 71: Line 71:
| 0x0 || 0x4 || Magic number? (0x01000001)
| 0x0 || 0x4 || Magic number? (0x01000001)
|-
|-
| 0x4 || 0x4 || Keyboard/layout group (e.g. 4 = Latin)
| 0x4 || 0x4 || Entry count per key (3 for US English, 4 for German as it includes AltGr mappings)
|-
|-
| 0x8 || 0x4 || Map count
| 0x8 || 0x4 || Map count
Line 85: Line 85:


=== KeyMapEntry ===
=== KeyMapEntry ===
8-byte structure defining the output characters and modifier behaviors for a single physical key.
Structure defining the output characters and modifier behaviors for a single physical key. Size may vary depending on the symbol count per key.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 95: Line 95:
| 0x2 || 0x2 || Flags: Bitmask for character behavior and modifier rules.
| 0x2 || 0x2 || Flags: Bitmask for character behavior and modifier rules.
|-
|-
| 0x4 || 0x2 || AltGr char: UTF-16 code point emitted when AltGr is held.
| 0x4 || 0x2 || Shift char: UTF-16 code point emitted when Shift is held.
|-
|-
| 0x6 || 0x2 || Shift char: UTF-16 code point emitted when Shift is held.
| 0x6 || 0x2 || AltGr char: UTF-16 code point emitted when AltGr is held (only included if the 'entry count per key' = 4)
|}
|}


Line 658: Line 658:
| 52 || [S1] GetOverlayDispProgramId
| 52 || [S1] GetOverlayDispProgramId
|-
|-
| 53 || GetDeviceTimeZoneLocationName
| 53 || [[#GetDeviceTimeZoneLocationName]]
|-
|-
| 54 || SetDeviceTimeZoneLocationName
| 54 || [[#SetDeviceTimeZoneLocationName]]
|-
|-
| 55 || [S1] [[#GetWirelessCertificationFileSize]]
| 55 || [S1] [[#GetWirelessCertificationFileSize]]
Line 1,331: Line 1,331:
== SetDataDeletionSettings ==
== SetDataDeletionSettings ==
Takes an input [[#DataDeletionSettings]], no output.
Takes an input [[#DataDeletionSettings]], no output.
== GetDeviceTimeZoneLocationName ==
No input, returns an output [[Glue_services#LocationName|LocationName]].
== SetDeviceTimeZoneLocationName ==
Takes an input [[Glue_services#LocationName|LocationName]], no output.


== GetWirelessCertificationFileSize ==
== GetWirelessCertificationFileSize ==
Line 2,030: Line 2,036:
| 3 || GrayScale
| 3 || GrayScale
|}
|}
= TvUnderscan =
This is s32. It defines the percentage point reduction from a 100% baseline.


= HandheldSleepPlan =
= HandheldSleepPlan =
Line 2,274: Line 2,283:
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
|-
|-
| 0x14 || 0x4 || TvUnderscan
| 0x14 || 0x4 || [[#TvUnderscan|TvUnderscan]]
|-
|-
| 0x18 || 0x4 || TvGamma
| 0x18 || 0x4 || TvGamma
Line 2,575: Line 2,584:
= ProductModel =
= ProductModel =
Ths is "nn::settings::system::ProductModel".
Ths is "nn::settings::system::ProductModel".
Range 1-6 is Nintendo Switch, range 7-12 is Nintendo Switch 2.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Value
! [[#ProductModelName|ProductModelName]]
! Description
|-
| 0 || Invalid
|-
| 1 || Nx
|-
| 2 || NxCopper
|-
| 3 || NxIowa
|-
|-
| 1 || "HAC"
| 4 || NxHoag
|-
|-
| 3 || "HAD"
| 5 || NxCalcio
|-
|-
| 4 || "HDH"
| 6 || NxAula
|-
|-
| 6 || "HEG"
| 7 || ([[#ProductModelName|ProductModelName]] BEE)
|-
|-
| 7 || "BEE"
| 8 || [22.5.0+] ([[#ProductModelName|ProductModelName]] OSM)
|-
| 9 ||
|-
| 10 ||
|-
| 11 ||
|-
| 12 ||  
|}
|}
Range 1-6 is Nintendo Switch, range 7-12 is Nintendo Switch 2.


= ProductModelName =
= ProductModelName =
This is "nn::settings::system::ProductModelName". This is a 0x8-byte struct containing a [[#ProductModel|string]].
This is "nn::settings::system::ProductModelName". This is a 0x8-byte struct containing a [[#ProductModel|string]].


= System Configuration =
{| class="wikitable" border="1"
|-
! Value
! [[#ProductModel|ProductModel]]
|-
| "HAC" || 1
|-
| "HAD" || 3
|-
| "HDH" || 4
|-
| "HEG" || 6
|-
| "BEE" || 7
|-
| "OSM" || [22.5.0+] 8
|}
 
= SystemConfiguration =
There's a common configuration title (*818), and one configuration title for each [[SMC#HardwareType|HardwareType]].
There's a common configuration title (*818), and one configuration title for each [[SMC#HardwareType|HardwareType]].