NIM Services: Difference between revisions

AriA99 (talk | contribs)
Update the page with structs.
Line 213: Line 213:
| 0x21
| 0x21
| ASCII hex SystemTitleHash, including NUL-terminator. This is the latest SystemTitleHash which NIM module received from SOAP.
| ASCII hex SystemTitleHash, including NUL-terminator. This is the latest SystemTitleHash which NIM module received from SOAP.
|}
=Types=
==InstallationMode==
{| class="wikitable" border="1"
|-
!  Value
!  Description
|-
| 0
| Initial installation
|-
| 1
| Unknown
|-
| 2
| Unknown
|-
| 3
| Reinstallation
|}
==DownloadState==
{| class="wikitable" border="1"
|-
!  Value
!  Description
|-
| 0
| Not initialized
|-
| 1
| Download initialized
|-
| 2
| Downloading, verifying and installing TMD
|-
| 3
| Initializing save data
|-
| 4
| Downloading and installing contents
|-
| 5
| Waiting before calling [[AM:CommitImportPrograms]]
|-
| 6
| Running [[AM:CommitImportPrograms]]
|-
| 7
| Title installation finished
|-
| 8
| Unknown error regarding title version
|-
| 9
| Creating the .ctx file (or error doing so)?
|-
| 10
| Irrecoverable error encountered
|}
==TitleConfig==
{| class="wikitable" border="1"
|-
!  Offset
!  Length
!  Description
|-
| 0x0
| 0x8
| Title ID
|-
| 0x8
| 0x4
| Title version
|-
| 0xC
| 0x4
| Unknown (always 0)
|-
| 0x10
| 0x1
| Age rating for the HOME Menu parental controls
|-
| 0x11
| 0x1
| [[Filesystem_services#MediaType|Media Type]]
|-
| 0x12
| 0x2
| Padding
|-
| 0x14
| 0x4
| Unknown (always 0?)
|}
==TitleProgress==
{| class="wikitable" border="1"
|-
!  Offset
!  Length
!  Description
|-
| 0x0
| 0x4
| [[#DownloadState|Download State]]
|-
| 0x4
| 0x4
| Last result code in NIM related to the installation
|-
| 0x8
| 0x8
| Amount of bytes that have been downloaded
|-
| 0x10
| 0x8
| Total bytes that need to be downloaded
|}
|}