NS services: Difference between revisions

(3 intermediate revisions by the same user not shown)
Line 685: Line 685:
| 503 || [[#RequestGameCardRegistrationGoldPoint]]
| 503 || [[#RequestGameCardRegistrationGoldPoint]]
|-
|-
| 504 || RequestRegisterGameCard
| 504 || [[#RequestRegisterGameCard]]
|-
|-
| 505 || [3.0.0+] [[#GetGameCardMountFailureEvent]]
| 505 || [3.0.0+] [[#GetGameCardMountFailureEvent]]
Line 771: Line 771:
| 1002 || [3.0.0+] RequestVerifyAddOnContentsRights
| 1002 || [3.0.0+] RequestVerifyAddOnContentsRights
|-
|-
| 1003 || [5.0.0+] RequestVerifyApplication
| 1003 || [5.0.0+] [[#RequestVerifyApplication]]
|-
|-
| 1004 || [5.0.0+] CorruptContentForDebug
| 1004 || [5.0.0+] CorruptContentForDebug
Line 1,059: Line 1,059:


==== RequestGameCardRegistrationGoldPoint ====
==== RequestGameCardRegistrationGoldPoint ====
Takes a total of 0x18-bytes of input, returns an output Event handle and an [[#IAsyncValue]].
Takes an input [[Account_services#Uid|Uid]], an [[NCM_services#ApplicationId|ApplicationId]], returns an output Event handle and an [[#IAsyncValue]].
 
Before using the cmd, official sw uses [[Network_Interface_services#IsAnyInternetRequestAccepted|IsAnyInternetRequestAccepted]] with the output from [[#Network_Interface_services#GetClientId|GetClientId]], throwing an error when the returned bool is false.
 
The data that can be read from the [[#IAsyncValue]] is 4-bytes.
 
==== RequestRegisterGameCard ====
Takes an input s32, an [[Account_services#Uid|Uid]], an [[NCM_services#ApplicationId|ApplicationId]], returns an output Event handle and an [[#IAsyncResult]].
 
Before using the cmd, official sw uses [[Network_Interface_services#IsAnyInternetRequestAccepted|IsAnyInternetRequestAccepted]] with the output from [[#Network_Interface_services#GetClientId|GetClientId]], throwing an error when the returned bool is false.


==== GetGameCardMountFailureEvent ====
==== GetGameCardMountFailureEvent ====
Line 1,094: Line 1,103:
==== WithdrawApplicationUpdateRequest ====
==== WithdrawApplicationUpdateRequest ====
Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output.
Takes an input [[NCM_services#ApplicationId|ApplicationId]], no output.
==== RequestVerifyApplication ====
Takes an input TransferMemory handle, an u32, an [[NCM_services#ApplicationId|ApplicationId]], an u64 size, returns an output Event handle and an [[#IAsyncResult]].
Official sw creates the TransferMemory with an user-specified buffer with permissions=0. [[qlaunch]] uses buffer size 0x100000.
Official sw has an additional wrapper func which calls the original wrapper func, this uses value 0x7 for the u32. This is the same func used by [[qlaunch]].


==== IsAnyApplicationEntityInstalled ====
==== IsAnyApplicationEntityInstalled ====