Changes

2,221 bytes added ,  04:18, 3 March 2023
Filling out nim:u types
Line 292: Line 292:     
=Types=
 
=Types=
==InstallationMode==
+
 
 +
==SystemUpdateProgress==
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Length
 +
!  Description
 +
|-
 +
| 0x00
 +
| 0x01
 +
| [[#SystemUpdateState|System Update State]]
 +
|-
 +
| 0x01
 +
| 0x03
 +
| Padding
 +
|-
 +
| 0x04
 +
| 0x04
 +
| Last Operation Result Code
 +
|-
 +
| 0x08
 +
| 0x08
 +
| Current Title Downloaded Bytes
 +
|-
 +
| 0x10
 +
| 0x08
 +
| Current Title Total Bytes
 +
|-
 +
| 0x18
 +
| 0x08
 +
| Titles Downloaded
 +
|-
 +
| 0x20
 +
| 0x08
 +
| Titles Total
 +
|}
 +
 
 +
==SystemUpdateState==
 +
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 299: Line 338:  
|-
 
|-
 
| 0
 
| 0
| Initial installation
+
| Not Initialized
 
|-
 
|-
 
| 1
 
| 1
| Unknown
+
| Starting System Update
 
|-
 
|-
 
| 2
 
| 2
| Unknown
+
| Fetching System Hash and Account Status
 
|-
 
|-
 
| 3
 
| 3
| Reinstallation
+
| Installing New Tickets
 +
|-
 +
| 4
 +
| Installing Titles
 +
|-
 +
| 5
 +
| Update Complete
 +
|-
 +
| 6
 +
| Failed - System Updates Disabled (Dev Units Only)
 +
|-
 +
| 7
 +
| ? (Only for background updates)
 +
|-
 +
| 8
 +
| ? (Only for background updates)
 +
|}
 +
 
 +
==TitleDownloadProgress==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Length
 +
!  Description
 +
|-
 +
| 0x00
 +
| 0x01
 +
| [[#TitleDownloadState|Title Download State]]
 +
|-
 +
| 0x01
 +
| 0x03
 +
| Padding
 +
|-
 +
| 0x04
 +
| 0x04
 +
| Last Operation Result Code
 +
|-
 +
| 0x08
 +
| 0x08
 +
| Downloaded Bytes
 +
|-
 +
| 0x10
 +
| 0x08
 +
| Total Bytes
 
|}
 
|}
==DownloadState==
+
 
 +
==TitleDownloadState==
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 317: Line 400:  
|-
 
|-
 
| 0
 
| 0
| Not initialized
+
| Not Initialized
 
|-
 
|-
 
| 1
 
| 1
| Download initialized
+
| Starting Title Download
 
|-
 
|-
 
| 2
 
| 2
| Downloading, verifying and installing TMD
+
| Downloading and Installing TMD
 
|-
 
|-
 
| 3
 
| 3
| Initializing save data
+
| Committing TMD
 
|-
 
|-
 
| 4
 
| 4
| Downloading and installing contents
+
| Downloading and Installing Contents
 
|-
 
|-
 
| 5
 
| 5
| Waiting before calling [[AM:CommitImportPrograms]]
+
| Contents Installed
 
|-
 
|-
 
| 6
 
| 6
| Running [[AM:CommitImportPrograms]]
+
| [[AM:CommitImportPrograms|Committing Titles]]
 
|-
 
|-
 
| 7
 
| 7
| Title installation finished
+
| Finished
 
|-
 
|-
 
| 8
 
| 8
| Unknown error regarding title version
+
| ? (Unknown error regarding title version?)
 
|-
 
|-
 
| 9
 
| 9
| Creating the .ctx file (or error doing so)?
+
| ? (Creating the .ctx file (or error doing so)?)
 
|-
 
|-
 
| 10
 
| 10
| Irrecoverable error encountered
+
| Background Download Failed
 
|}
 
|}
==TitleConfig==
+
 
 +
==TitleDownloadConfig==
 +
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 356: Line 441:  
!  Description
 
!  Description
 
|-
 
|-
| 0x0
+
| 0x00
| 0x8
+
| 0x08
 
| Title ID
 
| Title ID
 
|-
 
|-
| 0x8
+
| 0x08
| 0x4
+
| 0x04
 
| Title version
 
| Title version
 
|-
 
|-
| 0xC
+
| 0x0C
| 0x4
+
| 0x04
| Unknown (always 0)
+
| Unknown (always 0?)
 
|-
 
|-
 
| 0x10
 
| 0x10
| 0x1
+
| 0x01
| Age rating for the HOME Menu parental controls
+
| Age Rating (for HOME Menu parental controls)
 
|-
 
|-
 
| 0x11
 
| 0x11
| 0x1
+
| 0x01
 
| [[Filesystem_services#MediaType|Media Type]]
 
| [[Filesystem_services#MediaType|Media Type]]
 
|-
 
|-
 
| 0x12
 
| 0x12
| 0x2
+
| 0x02
 
| Padding
 
| Padding
 
|-
 
|-
 
| 0x14
 
| 0x14
| 0x4
+
| 0x04
 
| Unknown (always 0?)
 
| Unknown (always 0?)
 
|}
 
|}
==TitleProgress==
+
 
 +
==BackgroundTitleDownloadConfig==
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Length
 +
!  Description
 +
|-
 +
| 0x000
 +
| 0x018
 +
| [[#TitleDownloadConfig|Title Download Config]]
 +
|-
 +
| 0x018
 +
| 0x001
 +
| Unknown
 +
|-
 +
| 0x019
 +
| 0x001
 +
| Unknown
 +
|-
 +
| 0x01A
 +
| 0x006
 +
| Padding
 +
|-
 +
| 0x020
 +
| 0x008
 +
| Requester Title ID
 +
|-
 +
| 0x028
 +
| 0x090
 +
| Title Name (UTF-16)
 +
|-
 +
| 0x0B8
 +
| 0x002
 +
| Title Name Forced NUL Terminator (always 0)
 +
|-
 +
| 0x0BA
 +
| 0x048
 +
| Developer Name (UTF-16)
 +
|-
 +
| 0x102
 +
| 0x002
 +
| Developer Name Forced NUL Terminator (always 0)
 +
|}
 +
 
 +
==BackgroundTitleDownloadTaskInfo==
 +
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 391: Line 523:  
!  Description
 
!  Description
 
|-
 
|-
| 0x0
+
| 0x000
| 0x4
+
| 0x104
| [[#DownloadState|Download State]]
+
| [[#BackgroundTitleDownloadConfig|Background Title Download Config]]
 
|-
 
|-
| 0x4
+
| 0x104
| 0x4
+
| 0x004
| Last result code in NIM related to the installation
+
| Padding
 
|-
 
|-
| 0x8
+
| 0x108
| 0x8
+
| 0x018
| Amount of bytes that have been downloaded
+
| [[#TitleDownloadProgress|Title Download Progress]]
 +
|}
 +
 
 +
==AutoTitleDownloadTaskInfos==
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Length
 +
!  Description
 +
|-
 +
| 0x000
 +
| 0x008
 +
| Task ID
 +
|-
 +
| 0x008
 +
| 0x008
 +
| Title ID
 +
|-
 +
| 0x010
 +
| 0x004
 +
| Title Version
 +
|-
 +
| 0x014
 +
| 0x014
 +
| Unknown
 
|-
 
|-
| 0x10
+
| 0x028
| 0x8
+
| 0x008
| Total bytes that need to be downloaded
+
| Required Storage Space
 +
|-
 +
| 0x030
 +
| 0x004
 +
| Last Operation Result code
 +
|-
 +
| 0x034
 +
| 0x004
 +
| Last Operation Customer Support Code
 +
|-
 +
| 0x038
 +
| 0x090
 +
| Title Name (UTF-16)
 +
|-
 +
| 0x0C8
 +
| 0x002
 +
| Title Name Forced NUL Terminator (always 0)
 +
|-
 +
| 0x0CA
 +
| 0x048
 +
| Developer Name (UTF-16)
 +
|-
 +
| 0x112
 +
| 0x002
 +
| Developer Name Forced NUL Terminator (always 0)
 +
|-
 +
| 0x114
 +
| 0x024
 +
| Unknown
 +
|}
 +
 
 +
==InstallationMode==
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Value
 +
!  Description
 +
|-
 +
| 0
 +
| Initial Installation
 +
|-
 +
| 1
 +
| Unknown
 +
|-
 +
| 2
 +
| Unknown
 +
|-
 +
| 3
 +
| Re-installation
 
|}
 
|}
1,434

edits