Settings services: Difference between revisions

No edit summary
 
(One intermediate revision by the same user not shown)
Line 1,066: Line 1,066:
| 281 || [S2] SetHidDebugRailFlag
| 281 || [S2] SetHidDebugRailFlag
|-
|-
| 282 || [20.0.0+] ConvertToProductModel
| 282 || [20.0.0+] [[#ConvertToProductModel|ConvertToProductModel]]
|-
|-
| 283 || [20.0.0+] ConvertToProductModelName
| 283 || [20.0.0+] [[#ConvertToProductModelName|ConvertToProductModelName]]
|-
|-
| 284 || [S2] GetSaveDataPurgedForRepairFlag
| 284 || [S2] GetSaveDataPurgedForRepairFlag
Line 1,249: Line 1,249:


== GetProductModel ==
== GetProductModel ==
No input, returns an output s32.
No input, returns an output s32 [[#ProductModel|ProductModel]].


== GetMiiAuthorId ==
== GetMiiAuthorId ==
Line 1,392: Line 1,392:


No input, returns an output float.
No input, returns an output float.
== ConvertToProductModel ==
Takes an input [[#ProductModelName|ProductModelName]], returns an output [[#ProductModel|ProductModel]].
== ConvertToProductModelName ==
Takes an input [[#ProductModel|ProductModel]], return an output [[#ProductModelName|ProductModelName]].
When the input [[#ProductModel|ProductModel]] is invalid, this writes 0 to output and returns 0.


= Language =
= Language =
Line 2,522: Line 2,530:
= NxControllerSettings =
= NxControllerSettings =
This is "nn::settings::system::NxControllerSettings". This is a 0x42C-byte struct. This was added with [13.0.0+].
This is "nn::settings::system::NxControllerSettings". This is a 0x42C-byte struct. This was added with [13.0.0+].
= ProductModel =
Ths is "nn::settings::system::ProductModel".
Range 1-6 is Nintendo Switch, range 7-12 is Nintendo Switch 2.
{| class="wikitable" border="1"
|-
! Value
! [[#ProductModelName|ProductModelName]]
|-
| 1 || "HAC"
|-
| 3 || "HAD"
|-
| 4 || "HDH"
|-
| 6 || "HEG"
|-
| 7 || "BEE"
|}
= ProductModelName =
This is "nn::settings::system::ProductModelName". This is a 0x8-byte struct containing a [[#ProductModel|string]].


= System Configuration =
= System Configuration =