NS services: Difference between revisions
Line 1,266: | Line 1,266: | ||
== GetBackgroundNetworkUpdateState == | == GetBackgroundNetworkUpdateState == | ||
No input, returns an output [[#BackgroundNetworkUpdateState]]. | No input, returns an output [[#BackgroundNetworkUpdateState]]. | ||
This is similar to [[#HasDownloaded]], see [[#BackgroundNetworkUpdateState]]. | |||
== OpenSystemUpdateControl == | == OpenSystemUpdateControl == | ||
Line 1,504: | Line 1,506: | ||
! Description | ! Description | ||
|- | |- | ||
| 0 || | | 0 || No sysupdate task exists. | ||
|- | |- | ||
| 1 || | | 1 || Sysupdate download in progress. | ||
|- | |- | ||
| 2 || | | 2 || Sysupdate ready, pending install. | ||
|} | |} | ||
This is "nn::ns::BackgroundNetworkUpdateState". This is an u8. | This is "nn::ns::BackgroundNetworkUpdateState". This is an u8. | ||
Similar to [[#HasDownloaded]], [[#GetBackgroundNetworkUpdateState]] uses [[NIM_services|nim]] ListSystemUpdateTask and [[NIM_services|nim]] GetSystemUpdateTaskInfo. When ListSystemUpdateTask successfully returns a task and GetSystemUpdateTaskInfo is successful, the output value is set to: <code>1 + *((u8*)(taskinfo+0) == 0x3</code>. Otherwise, value=0. | |||
[[#GetBackgroundNetworkUpdateState]] always returns Result 0, however this will assert if GetSystemUpdateTaskInfo fails with ret!=0x3C89. | |||
== SystemUpdateProgress == | == SystemUpdateProgress == |