NIM services: Difference between revisions

SystemUpdateTask -> SystemUpdateTaskId
Shchmue (talk | contribs)
Line 392: Line 392:
! Description
! Description
|-
|-
| 0x0 || 0x1 || Status
| 0x0 || 0x1 || InstallProgressState
|-
|-
| 0x1 || 0x7 || ?
| 0x4 || 0x4 || LastResult
|-
|-
| 0x8 || 0x8 || Unknown
| 0x8 || 0x8 || InstalledSize
|-
|-
| 0x10 || 0x8 || DownloadSize
| 0x10 || 0x8 || TotalSize
|-
|-
| 0x18 || 0x8 || ContentMetaId
| 0x18 || 0x8 || [[NCM_services#ContentMetaKey|ContentMetaKey]]
|-
|-
| 0x20 || 0x4 || Version
| 0x28 || 0x8 || BytesInstalled
|-
|-
| 0x24 || 0x4 || ?
| 0x30 || 0x8 || ElapsedTimeNs
|-
|-
| 0x28 || 0x8 || BytesPerSecond
| 0x38 || 0x1 || SystemUpdateTaskApplyInfo
|-
| 0x30 || 0x8 || BytesPerMB
|-
| 0x38 || 0x8 || ?
|}
|}


This is a 0x28-byte struct. [3.0.0+] This is a 0x38-byte struct. [5.0.0+] This is a 0x40-byte struct.
This is a 0x28-byte struct. [3.0.0+] This is a 0x38-byte struct. [5.0.0+] This is a 0x40-byte struct.


The 0x10-bytes at +0x8 are returned by [[NS_Services#GetDownloadProgress]].
The first 0x18-bytes are obtained from [[NCM_services#GetProgress]] and the 0x10-bytes at +0x8 are returned by [[NS_Services#GetDownloadProgress]].
 
The two u64s at +0x28/+0x30 are obtained from [[NCM_services#GetThroughput]] and used by [[NS_Services|NS]] to calculate "ThroughputKBps" for a SystemPlayReport.


The two u64s at +0x28/+0x30 are used by [[NS_Services|NS]] to calculate "ThroughputKBps" for a SystemPlayReport.
The byte at +0x38 is obtained from [[NCM_services#GetSystemUpdateTaskApplyInfo]].


== NetworkInstallTask ==
== NetworkInstallTask ==