Migration services: Difference between revisions

No edit summary
No edit summary
Line 342: Line 342:


[20.0.0+] The above policy functionality is no longer present. This now eventually uses network request [[Network|transfer_events/start]].
[20.0.0+] The above policy functionality is no longer present. This now eventually uses network request [[Network|transfer_events/start]].
The async task does the following (handling any errors as needed / calling any logging funcs as needed):
* ...
* Calls a vfunc, returns 0 if ret is true.
* Handles state cleanup if needed.
* Calls a func. This uses various [[OLSC_services|olsc:s]] functionality.
* Sets the state flag which was used for the above cleanup.
* Calls a func which uses [[NS_services#IManagerForSystemService|IManagerForSystemService]] GetAccountId. The output is unused.
* Calls a vfunc, returns 0 if ret is true.
* Calls a func.
* Handles [[Sockets_services|sockets]]/etc initialization, enters a nifm block.
* Uses network request [[Network|transfer_events/start]]. The output from this func is copied into state.
* Nifm usage ends here. Handles [[Sockets_services|sockets]] cleanup, etc.


=== Cmd102 ===
=== Cmd102 ===
Line 559: Line 572:


* ...
* ...
* Calls a func.
* Calls the same olsc func as [[#PrepareAsync|PrepareAsync]].
* ...
* ...
* Loops through an array to find an entry matching the 0x10-bytes from {func input param}, returning an error if not found. (entryptr is the located entry once done)
* Loops through an array to find an entry matching the 0x10-bytes from {func input param}, returning an error if not found. (entryptr is the located entry once done)