LDN services: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 269: Line 269:
This cmd was implemented with [20.0.0+], prior to that this just returned an error.
This cmd was implemented with [20.0.0+], prior to that this just returned an error.


The sdk user-process func will pass value 1 to the cmd when the input [[#Protocol|Protocol]] is 0/1, 3 is passed directly if specified, otherwise Abort. User-processes use SetProtocol immediately after initializing ldn.
The sdk user-process func will pass value 1 (2 on Ounce) to the cmd when the input [[#Protocol|Protocol]] is 0, valid values passed directly when recognized, otherwise Abort. User-processes use SetProtocol immediately after initializing ldn.


[20.0.0+] The ldn initialization functionality in sdknso also uses this with value 1 (NX) eventually after the init cmd was used successfully.
[20.0.0+] The ldn initialization functionality in sdknso also uses this with value 1 (NX) eventually after the init cmd was used successfully.
Line 1,467: Line 1,467:
| 2 || [S2]
| 2 || [S2]
|-
|-
| 3 || (NXAndOunce?)
| 3 || [20.0.0+] (NXAndOunce?)
|-
|-
| 4 || [S2]
| 4 || [S2] [20.0.0+]
|}
|}


The Initialize* cmds configure state the same as using [[#SetProtocol|SetProtocol]] with Protocol NX.
The Initialize* cmds configure state the same as using [[#SetProtocol|SetProtocol]] with Protocol NX.


There appears to be S2-only values which enables using Ounce-only keys. The following uses new Ounce-only keys (with S2 hosting):
There's S2-only values which enables using Ounce-only keys. The following uses new Ounce-only keys (with S2 hosting):
* In-game ldn-usage for a S2-only Application.
* In-game ldn-usage for a S2-only Application.
* Local-game-update with a S2-only Application.
* Local-game-update with a S2-only Application.
Line 2,171: Line 2,171:


== Code-region Memory Layout ==
== Code-region Memory Layout ==
=== S2 20.5.0 ===
=== S2 20.2.0 ===
This is the codebin-region layout for S2 ldn 20.5.0, exact starting version unknown. BuildId is "DC456FA4...".
This is the codebin-region layout for S2 ldn 20.2.0-20.5.0. BuildId is "DC456FA4...".


The on-NX note is for the equivalent memregion location/size, memregion-size/contents compared to NX may vary.
The on-NX note is for the equivalent memregion location/size, memregion-size/contents compared to NX may vary.
Total size is 0x24F000-bytes.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 2,209: Line 2,211:
| 0x1F4000 || 0x21000 || {accessible} || On NX this is at 0x1EA000.
| 0x1F4000 || 0x21000 || {accessible} || On NX this is at 0x1EA000.
|-
|-
| 0x218000 || || -- || Likely end going by NX.
| 0x218000 || 0x8000 || -- ||
|-
| 0x220000 || 0x2F000 || {accessible}
|}
|}


[[Category:Services]]
[[Category:Services]]