NS services: Difference between revisions
Line 1,841: | Line 1,841: | ||
An error is thrown if [[NIM_services|nim]] ListApplicationApplyDeltaTask returns a task. | An error is thrown if [[NIM_services|nim]] ListApplicationApplyDeltaTask returns a task. | ||
This does various setup and loops through the input ContentMetaKey array for initializing the array passed to the nim cmd during the async task. This loop does the following: | |||
* Throws an error if the [[NCM_services#ContentMetaType|ContentMetaType]] in the ContentMetaKey doesn't match Patch. | |||
* Calls a func with the ContentMetaKey and the ApplicationId, throwing an error if the output value is 0. | |||
* Calls a func with the ContentMetaKey for getting the StorageId. This essentially loops through each valid ncm [[NCM_services|IContentMetaDatabase]] using cmd [[NCM_services|Has]] with the input ContentMetaKey, returning the relevant StorageId when found. | |||
* The ContentMetaKey and the StorageId are copied into a tmp struct. | |||
* if (ContentMetaType==Patch && StorageId==GameCard) { <call a func etc> } | |||
* Copies the above tmp struct into the async task state array. | |||
This then creates the [[#IAsyncResult]] + the async thread which handles the [[#IAsyncResult]] operation. Then the thread does: | |||
* Calls a func which does: | * Calls a func which does: |