APT:AppletUtility: Difference between revisions

Smea (talk | contribs)
TimmSkiller (talk | contribs)
Add utility 16 description
 
(9 intermediate revisions by 6 users not shown)
Line 9: Line 9:
|-
|-
| 1
| 1
| Size
| [[APT:AppletUtility#Utility|Utility]]
|-
| 1
| ?
|-
|-
| 2
| 2
| Buffer size
| Input Size
|-
|-
| 3
| 3
| ?
| Output Size
|-
|-
| 4
| 4
| ((Buffer size)<<14)<nowiki>|</nowiki>0x402
| {{IPC/TranslationDescriptor|(Input Size << 14) <nowiki>|</nowiki> 0x402}}
|-
|-
| 5
| 5
| Buffer1 (in ?) address
| void*, Input
|}
|}


Data at cmdbuf+0x100 :
The following is located 0x100-bytes after the beginning of the above command buffer:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 34: Line 31:
|-
|-
| 0
| 0
| ((Buffer size)<<14)<nowiki>|</nowiki>2
| (Output Size << 14) <nowiki>|</nowiki> 2
|-
|-
| 1
| 1
| Buffer2 (out ?) address
| void*, Output
|}
|}


Line 53: Line 50:
|-
|-
| 2
| 2
| Applet Result
|}
=Utility=
{| class="wikitable" border="1"
|-
!  ID
!  Description
|-
| 0
| void ClearPowerButtonState()
|-
| 1
| ?
|-
| 2
| Sets current applet slot to Home Menu?
|-
| 3
| void ClearExclusiveControl()
|-
| 4
| void SleepIfShellClosed()
|-
| 5
| void LockTransition(u32 transition)
|-
| 6
| bool TryLockTransition(u32 transition)
|-
| 7
| void UnlockTransition(u32 transition)
|-
| 10
| void StartExitTask()
|-
| 11
| void SetInitialSenderId(u32 id)
|-
| 12
| void SetPowerButtonClick()
|-
| 16
| void UnlockCartAndSdSlot(bool unlocked) (Prevents a "card removed" error when passing true)
|-
| 17
| ?
|-
| 18
| ?
| ?
|}
|}