Difference between revisions of "NSC:LockSpecialContent"
Steveice10 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00010100] |- | 1 | MediaType |- | 2-3 | Tit...") |
Steveice10 (talk | contribs) m (→Description) |
||
Line 36: | Line 36: | ||
If a content is already locked, error C8A12406 will be returned. | If a content is already locked, error C8A12406 will be returned. | ||
+ | |||
+ | If the ns:c session is closed, [[NSC:UnlockSpecialContent|UnlockSpecialContent]] will be called internally to clean up the locked content. | ||
This is used by the Instruction Manual applet, and is likely related to triggering SD/Game Card removal errors when ejecting the media the manual is stored on. | This is used by the Instruction Manual applet, and is likely related to triggering SD/Game Card removal errors when ejecting the media the manual is stored on. |
Latest revision as of 20:00, 2 April 2023
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x00010100] |
1 | MediaType |
2-3 | Title ID |
4 | SpecialContentType |
Response[edit]
Index Word | Description |
---|---|
0 | Header code [0x00010040] |
1 | Result code |
Description[edit]
If a content is not already locked, this stores the provided parameters in the service's data structure and increments global counters for locked SD card and game card titles based on the media type. If an update title is available for the provided application, the appropriate counter will be incremented as well based on its media type. This also calls into some FS service functions in the range 0x870-0x878 with currently unknown purpose.
If a content is already locked, error C8A12406 will be returned.
If the ns:c session is closed, UnlockSpecialContent will be called internally to clean up the locked content.
This is used by the Instruction Manual applet, and is likely related to triggering SD/Game Card removal errors when ejecting the media the manual is stored on.