NIM Services: Difference between revisions
Steveice10 (talk | contribs) Filling out nim:u service commands |
Steveice10 (talk | contribs) Filling out nim:u types |
||
Line 292: | Line 292: | ||
=Types= | =Types= | ||
== | |||
==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 | ||
| | | Not Initialized | ||
|- | |- | ||
| 1 | | 1 | ||
| | | Starting System Update | ||
|- | |- | ||
| 2 | | 2 | ||
| | | Fetching System Hash and Account Status | ||
|- | |- | ||
| 3 | | 3 | ||
| | | 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 | |||
|} | |} | ||
== | |||
==TitleDownloadState== | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 317: | Line 400: | ||
|- | |- | ||
| 0 | | 0 | ||
| Not | | Not Initialized | ||
|- | |- | ||
| 1 | | 1 | ||
| Download | | Starting Title Download | ||
|- | |- | ||
| 2 | | 2 | ||
| Downloading | | Downloading and Installing TMD | ||
|- | |- | ||
| 3 | | 3 | ||
| | | Committing TMD | ||
|- | |- | ||
| 4 | | 4 | ||
| Downloading and | | Downloading and Installing Contents | ||
|- | |- | ||
| 5 | | 5 | ||
| | | Contents Installed | ||
|- | |- | ||
| 6 | | 6 | ||
| | | [[AM:CommitImportPrograms|Committing Titles]] | ||
|- | |- | ||
| 7 | | 7 | ||
| | | 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 | ||
| | | Background Download Failed | ||
|} | |} | ||
== | |||
==TitleDownloadConfig== | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 356: | Line 441: | ||
! Description | ! Description | ||
|- | |- | ||
| | | 0x00 | ||
| | | 0x08 | ||
| Title ID | | Title ID | ||
|- | |- | ||
| | | 0x08 | ||
| | | 0x04 | ||
| Title version | | Title version | ||
|- | |- | ||
| | | 0x0C | ||
| | | 0x04 | ||
| Unknown (always 0) | | Unknown (always 0?) | ||
|- | |- | ||
| 0x10 | | 0x10 | ||
| | | 0x01 | ||
| Age | | Age Rating (for HOME Menu parental controls) | ||
|- | |- | ||
| 0x11 | | 0x11 | ||
| | | 0x01 | ||
| [[Filesystem_services#MediaType|Media Type]] | | [[Filesystem_services#MediaType|Media Type]] | ||
|- | |- | ||
| 0x12 | | 0x12 | ||
| | | 0x02 | ||
| Padding | | Padding | ||
|- | |- | ||
| 0x14 | | 0x14 | ||
| | | 0x04 | ||
| Unknown (always 0?) | | Unknown (always 0?) | ||
|} | |} | ||
== | |||
==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 | ||
|- | |- | ||
| | | 0x000 | ||
| | | 0x104 | ||
| [[# | | [[#BackgroundTitleDownloadConfig|Background Title Download Config]] | ||
|- | |- | ||
| | | 0x104 | ||
| | | 0x004 | ||
| | | Padding | ||
|- | |- | ||
| | | 0x108 | ||
| | | 0x018 | ||
| | | [[#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 | |||
|- | |- | ||
| | | 0x028 | ||
| | | 0x008 | ||
| | | 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 | |||
|} | |} |