Line 345: |
Line 345: |
| | | |
| == GetTotalSpaceSize == | | == GetTotalSpaceSize == |
− | Takes an input media-id that must be 5. | + | Takes an input u8 [[NCM_services#StorageId|StorageId]], no output. |
| | | |
− | Returns the u64 from [[Content_Manager_services#IContentStorage]] cmd22. | + | The StorageId must be SdCard. |
| + | |
| + | Returns the s64 from [[NCM_services#IContentStorage]] GetFreeSpaceSize. |
| | | |
| == GetFreeSpaceSize == | | == GetFreeSpaceSize == |
− | Takes an input media-id that must be 5. | + | Takes an input u8 [[NCM_services#StorageId|StorageId]], no output. |
| | | |
− | Returns the u64 from [[Content_Manager_services#IContentStorage]] cmd23. | + | The StorageId must be SdCard. |
| + | |
| + | Returns the s64 from [[NCM_services#IContentStorage]] GetTotalSpaceSize. |
| | | |
| == GetApplicationDesiredLanguage == | | == GetApplicationDesiredLanguage == |
Line 365: |
Line 369: |
| | | |
| == GetApplicationControlData == | | == GetApplicationControlData == |
− | Takes an input u8 [[#ApplicationControlSource]], an [[NCM_services#ApplicationId|ApplicationId]], and a type-0x6 output buffer. Returns an output u32 for actual_size. Official user-processes use buffer size 0x24000. [[qlaunch]] only uses flag value 0x1 (Storage if not in cache). | + | Takes an input u8 [[#ApplicationControlSource]], an [[NCM_services#ApplicationId|ApplicationId]], and a type-0x6 output buffer. Returns an output u32 for actual_size. Official user-processes use buffer size 0x24000. [[qlaunch]] only uses source value 0x1 (Storage if not in cache). |
| | | |
| Loads cached [[control.nacp]] to buf+0 and the cached icon to buf+0x4000. Returns an error if the buffer is too small. | | Loads cached [[control.nacp]] to buf+0 and the cached icon to buf+0x4000. Returns an error if the buffer is too small. |
Line 533: |
Line 537: |
| | 43 || CheckSdCardMountStatus | | | 43 || CheckSdCardMountStatus |
| |- | | |- |
− | | 44 || GetSdCardMountStatusChangedEvent | + | | 44 || [[#GetSdCardMountStatusChangedEvent]] |
| |- | | |- |
| | 45 || GetGameCardAttachmentEvent | | | 45 || GetGameCardAttachmentEvent |
Line 571: |
Line 575: |
| | 64 || StartApplyDeltaTask | | | 64 || StartApplyDeltaTask |
| |- | | |- |
− | | 65 || GetRequestServerStopper | + | | 65 || [[#GetRequestServerStopper]] |
| |- | | |- |
| | 66 || [3.0.0+] GetBackgroundApplyDeltaStressTaskInfo | | | 66 || [3.0.0+] GetBackgroundApplyDeltaStressTaskInfo |
| |- | | |- |
− | | 67 || [3.0.0+] CancelApplicationApplyDelta | + | | 67 || [3.0.0+] [[#CancelApplicationApplyDelta]] |
| |- | | |- |
− | | 68 || [3.0.0+] ResumeApplicationApplyDelta | + | | 68 || [3.0.0+] [[#ResumeApplicationApplyDelta]] |
| |- | | |- |
− | | 69 || [3.0.0+] CalculateApplicationApplyDeltaRequiredSize | + | | 69 || [3.0.0+] [[#CalculateApplicationApplyDeltaRequiredSize]] |
| |- | | |- |
− | | 70 || [3.0.0+] ResumeAll | + | | 70 || [3.0.0+] [[#ResumeAll]] |
| |- | | |- |
− | | 71 || [3.0.0+] GetStorageSize | + | | 71 || [3.0.0+] [[#GetStorageSize]] |
| |- | | |- |
| | 80 || [3.0.0+] RequestDownloadApplication | | | 80 || [3.0.0+] RequestDownloadApplication |
Line 635: |
Line 639: |
| | 201 || DeleteUserSaveDataAll | | | 201 || DeleteUserSaveDataAll |
| |- | | |- |
− | | 210 || DeleteUserSystemSaveData | + | | 210 || [[#DeleteUserSystemSaveData]] |
| |- | | |- |
− | | 211 || [6.0.0+] DeleteSaveData | + | | 211 || [6.0.0+] [[#DeleteSaveData]] |
| |- | | |- |
− | | 220 || UnregisterNetworkServiceAccount | + | | 220 || [[#UnregisterNetworkServiceAccount]] |
| |- | | |- |
− | | 221 || [6.0.0+] UnregisterNetworkServiceAccountWithUserSaveDataDeletion | + | | 221 || [6.0.0+] [[#UnregisterNetworkServiceAccountWithUserSaveDataDeletion]] |
| |- | | |- |
| | 300 || GetApplicationShellEvent | | | 300 || GetApplicationShellEvent |
Line 659: |
Line 663: |
| | 307 || TerminateOverlayApplet | | | 307 || TerminateOverlayApplet |
| |- | | |- |
− | | 400 || GetApplicationControlData | + | | 400 || [[#GetApplicationControlData]] |
| |- | | |- |
| | 401 || InvalidateAllApplicationControlCache | | | 401 || InvalidateAllApplicationControlCache |
Line 683: |
Line 687: |
| | 504 || RequestRegisterGameCard | | | 504 || RequestRegisterGameCard |
| |- | | |- |
− | | 505 || [3.0.0+] GetGameCardMountFailureEvent | + | | 505 || [3.0.0+] [[#GetGameCardMountFailureEvent]] |
| |- | | |- |
− | | 506 || [3.0.0+] IsGameCardInserted | + | | 506 || [3.0.0+] [[#IsGameCardInserted]] |
| |- | | |- |
− | | 507 || [3.0.0+] EnsureGameCardAccess | + | | 507 || [3.0.0+] [[#EnsureGameCardAccess]] |
| |- | | |- |
− | | 508 || [3.0.0+] GetLastGameCardMountFailureResult | + | | 508 || [3.0.0+] [[#GetLastGameCardMountFailureResult]] |
| |- | | |- |
− | | 509 || [5.0.0+] ListApplicationIdOnGameCard | + | | 509 || [5.0.0+] [[#ListApplicationIdOnGameCard]] |
| |- | | |- |
| | 510 || [9.0.0+] [[#GetGameCardPlatformRegion]] | | | 510 || [9.0.0+] [[#GetGameCardPlatformRegion]] |
Line 737: |
Line 741: |
| | 903 || DisableApplicationAutoUpdate | | | 903 || DisableApplicationAutoUpdate |
| |- | | |- |
− | | 904 || TouchApplication | + | | 904 || [[#TouchApplication]] |
| |- | | |- |
| | 905 || RequestApplicationUpdate | | | 905 || RequestApplicationUpdate |
| |- | | |- |
− | | 906 || IsApplicationUpdateRequested | + | | 906 || [[#IsApplicationUpdateRequested]] |
| |- | | |- |
− | | 907 || WithdrawApplicationUpdateRequest | + | | 907 || [[#WithdrawApplicationUpdateRequest]] |
| |- | | |- |
| | 908 || ListApplicationRecordInstalledContentMeta | | | 908 || ListApplicationRecordInstalledContentMeta |
Line 773: |
Line 777: |
| | 1200 || [[#NeedsUpdateVulnerability]] | | | 1200 || [[#NeedsUpdateVulnerability]] |
| |- | | |- |
− | | 1300 || IsAnyApplicationEntityInstalled | + | | 1300 || [[#IsAnyApplicationEntityInstalled]] |
| |- | | |- |
| | 1301 || DeleteApplicationContentEntities | | | 1301 || DeleteApplicationContentEntities |
Line 785: |
Line 789: |
| | 1308 || [5.0.0+] DeleteApplicationCompletelyForDebug | | | 1308 || [5.0.0+] DeleteApplicationCompletelyForDebug |
| |- | | |- |
− | | 1309 || [6.0.0+] CleanupUnavailableAddOnContents | + | | 1309 || [6.0.0+] [[#CleanupUnavailableAddOnContents]] |
| |- | | |- |
| | 1400 || PrepareShutdown | | | 1400 || PrepareShutdown |
| |- | | |- |
− | | 1500 || FormatSdCard | + | | 1500 || [[#FormatSdCard]] |
| |- | | |- |
− | | 1501 || NeedsSystemUpdateToFormatSdCard | + | | 1501 || [[#NeedsSystemUpdateToFormatSdCard]] |
| |- | | |- |
− | | 1502 || GetLastSdCardFormatUnexpectedResult | + | | 1502 || [[#GetLastSdCardFormatUnexpectedResult]] |
| |- | | |- |
| | 1504 || [3.0.0+] InsertSdCard | | | 1504 || [3.0.0+] InsertSdCard |
Line 871: |
Line 875: |
| | 2051 || [9.0.0+] InvalidateRightsIdCache | | | 2051 || [9.0.0+] InvalidateRightsIdCache |
| |- | | |- |
− | | 2100 || [6.0.0+] GetApplicationTerminateResult | + | | 2100 || [6.0.0+] [[#GetApplicationTerminateResult]] |
| |- | | |- |
| | 2101 || [6.0.0+] GetRawApplicationTerminateResult | | | 2101 || [6.0.0+] GetRawApplicationTerminateResult |
Line 997: |
Line 1,001: |
| | | |
| ==== SetApplicationTerminateResult ==== | | ==== SetApplicationTerminateResult ==== |
− | Takes an input Result, an [[NCM_services#ApplicationId|ApplicationId]], no output. | + | Takes an input u32 Result, an [[NCM_services#ApplicationId|ApplicationId]], no output. |
| | | |
| ==== ClearApplicationTerminateResult ==== | | ==== ClearApplicationTerminateResult ==== |
Line 1,004: |
Line 1,008: |
| ==== GetLastSdCardMountUnexpectedResult ==== | | ==== GetLastSdCardMountUnexpectedResult ==== |
| No input/output. | | No input/output. |
| + | |
| + | ==== GetRequestServerStopper ==== |
| + | No input, returns an output [[#IRequestServerStopper]]. |
| + | |
| + | ==== CancelApplicationApplyDelta ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output. |
| + | |
| + | ==== ResumeApplicationApplyDelta ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output. |
| + | |
| + | ==== CalculateApplicationApplyDeltaRequiredSize ==== |
| + | Takes an input u8 [[NCM_services#StorageId|StorageId]], an [[NCM_services#ApplicationId|ApplicationId]], returns an output s64. |
| + | |
| + | ==== ResumeAll ==== |
| + | No input/output. |
| + | |
| + | ==== GetStorageSize ==== |
| + | Takes an input u8 [[NCM_services#StorageId|StorageId]], returns two output s64s. |
| + | |
| + | This temporarily mounts the [[Filesystem_services#OpenContentStorageFileSystem|ContentStorage]] specified by the StorageId (must be BuiltInUser or SdCard). The two output s64s are the output from [[Filesystem_services#GetTotalSpaceSize|GetTotalSpaceSize]] and [[Filesystem_services#GetFreeSpaceSize|GetFreeSpaceSize]] with this ContentStorage, with it this being unmounted afterwards. |
| | | |
| ==== LaunchDevMenu ==== | | ==== LaunchDevMenu ==== |
Line 1,015: |
Line 1,039: |
| | | |
| Then if the above succeeds, the above titles are launched with the above StorageId via [[Process_Manager_services|pmshell]] LaunchProgram, with a 0.5s sleep-thread afterwards on success. | | Then if the above succeeds, the above titles are launched with the above StorageId via [[Process_Manager_services|pmshell]] LaunchProgram, with a 0.5s sleep-thread afterwards on success. |
| + | |
| + | ==== DeleteUserSystemSaveData ==== |
| + | Takes an input [[Account_services#Uid|Uid]], an u64 SystemSaveDataId, no output. |
| + | |
| + | ==== DeleteSaveData ==== |
| + | Takes an input u8 [[Filesystem_services#SaveDataSpaceId|SaveDataSpaceId]], an u64 SaveDataId, no output. |
| + | |
| + | ==== UnregisterNetworkServiceAccount ==== |
| + | Takes an input [[Account_services#Uid|Uid]], no output. |
| + | |
| + | ==== UnregisterNetworkServiceAccountWithUserSaveDataDeletion ==== |
| + | Takes an input [[Account_services#Uid|Uid]], no output. |
| | | |
| ==== ListApplicationTitle ==== | | ==== ListApplicationTitle ==== |
Line 1,024: |
Line 1,060: |
| ==== RequestGameCardRegistrationGoldPoint ==== | | ==== RequestGameCardRegistrationGoldPoint ==== |
| Takes a total of 0x18-bytes of input, returns an output Event handle and an [[#IAsyncValue]]. | | Takes a total of 0x18-bytes of input, returns an output Event handle and an [[#IAsyncValue]]. |
| + | |
| + | ==== GetGameCardMountFailureEvent ==== |
| + | No input, returns an output Event handle with EventClearMode=0. |
| + | |
| + | ==== IsGameCardInserted ==== |
| + | No input, returns an output u8 bool. |
| + | |
| + | ==== EnsureGameCardAccess ==== |
| + | No input/output. |
| + | |
| + | ==== GetLastGameCardMountFailureResult ==== |
| + | No input/output. |
| + | |
| + | ==== ListApplicationIdOnGameCard ==== |
| + | Takes a type-0x6 output buffer containing an array of u64 [[NCM_services#ApplicationId|ApplicationIds]], returns an output s32 for total output entries. |
| | | |
| ==== GetGameCardPlatformRegion ==== | | ==== GetGameCardPlatformRegion ==== |
Line 1,032: |
Line 1,083: |
| ==== RequestDownloadTaskListData ==== | | ==== RequestDownloadTaskListData ==== |
| No input, returns an output Event handle and an [[#IAsyncValue]]. | | No input, returns an output Event handle and an [[#IAsyncValue]]. |
| + | |
| + | ==== TouchApplication ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output. |
| + | |
| + | ==== IsApplicationUpdateRequested ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], returns an output u8 bool and an u32. |
| + | |
| + | The output u32 is only valid when the output bool is set. |
| + | |
| + | ==== WithdrawApplicationUpdateRequest ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output. |
| + | |
| + | ==== IsAnyApplicationEntityInstalled ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], returns an output u8 bool. |
| + | |
| + | ==== CleanupUnavailableAddOnContents ==== |
| + | Takes an input u64 [[NCM_services#ApplicationId|ApplicationId]], an [[Account_services#Uid|Uid]], no output. |
| + | |
| + | ==== FormatSdCard ==== |
| + | No input/output. |
| + | |
| + | ==== NeedsSystemUpdateToFormatSdCard ==== |
| + | No input, returns an output u8 bool. |
| + | |
| + | ==== GetLastSdCardFormatUnexpectedResult ==== |
| + | No input/output. |
| | | |
| ==== GetSystemDeliveryInfo ==== | | ==== GetSystemDeliveryInfo ==== |
Line 1,157: |
Line 1,234: |
| | | |
| This extracts data from the input array for hashing with SHA256, with validation being done when handling each entry. | | This extracts data from the input array for hashing with SHA256, with validation being done when handling each entry. |
| + | |
| + | ==== GetApplicationTerminateResult ==== |
| + | Takes an input [[NCM_services#ApplicationId|ApplicationId]], returns an output u32 Result. |
| | | |
| ==== GetRightsEnvironmentHandleForApplication ==== | | ==== GetRightsEnvironmentHandleForApplication ==== |