AMNet:CommitImportTitlesAndUpdateFirmwareAuto: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x081B00C2] |- | 1 | u8 Mediatype |- | 2 | Total tit..."
 
PabloMK7 (talk | contribs)
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|-
|-
| 1
| 1
| u8 [[FS:OpenArchive#Mediatypes|Mediatype]]
| [[Filesystem_services#MediaType|Media Type]]
|-
|-
| 2
| 2
| Total titles
| Title Count
|-
|-
| 3
| 3
| Unknown u8, usually zero?
| u8, cleanup (0 = no cleanup, 1 = cleanup)
|-
|-
| 4
| 4
| (TitleIDList_Size<<4) <nowiki>|</nowiki> 10
| ((Title Count * 8) << 4) <nowiki>|</nowiki> 0xA
|-
|-
| 5
| 5
| Input [[AMNet:GetTitleIDList|TitleIDList]] pointer
| Title IDs Input Pointer
|}
|}


Line 38: Line 38:


=Description=
=Description=
This finishes installing the specified titles, by moving them from their temporary NAND directories to the final /title directories.
See [[Title_Data_Structure|this]] for how the system finalizes title installation. When AM module handles this command, AM module will use [[Application_Manager_Services_PXI|AMPXI]] command 0x00420142 if a NATIVE_FIRM install is [[AM:UpdateFirmwareAuto|needed]], regardless of whether the NATIVE_FIRM titleID was specified in the input buffer. If the NATIVE_FIRM titleID was specified in the input titleID list and the title-version from [[AMPXI:GetTitleList]] is the latest version, then if the version from [[AMPXI:GetTitleTemporaryInfo]] is newer than the current version [[Application_Manager_Services_PXI|AMPXI]] command 0x00420142 is used. Otherwise when a NATIVE_FIRM install is not needed, [[Application_Manager_Services_PXI|AMPXI]] command 0x002A00C2 is used instead.

Latest revision as of 14:27, 17 April 2025

Request

Index Word Description
0 Header code [0x081B00C2]
1 Media Type
2 Title Count
3 u8, cleanup (0 = no cleanup, 1 = cleanup)
4 ((Title Count * 8) << 4) | 0xA
5 Title IDs Input Pointer

Response

Index Word Description
0 Header code
1 Result code

Description

See this for how the system finalizes title installation. When AM module handles this command, AM module will use AMPXI command 0x00420142 if a NATIVE_FIRM install is needed, regardless of whether the NATIVE_FIRM titleID was specified in the input buffer. If the NATIVE_FIRM titleID was specified in the input titleID list and the title-version from AMPXI:GetTitleList is the latest version, then if the version from AMPXI:GetTitleTemporaryInfo is newer than the current version AMPXI command 0x00420142 is used. Otherwise when a NATIVE_FIRM install is not needed, AMPXI command 0x002A00C2 is used instead.