Difference between revisions of "AM:GetImportTitleContexts"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000D0084] |- | 1 | Total titles |- | 2 | u8 [[FS:OpenArchive#Mediatypes|Mediatyp...")
 
(made it clearer what the input buffer is used for)
 
(4 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Total titles
+
| Import Title Context Count
 
|-
 
|-
 
| 2
 
| 2
| u8 [[FS:OpenArchive#Mediatypes|Mediatype]]
+
| [[Filesystem_services#MediaType|Media Type]]
 
|-
 
|-
 
| 3
 
| 3
| (TitleIDList_Size<<4) <nowiki>|</nowiki> 10
+
| ((Import Title Context Count * 8) << 4) <nowiki>|</nowiki> 0xA
 
|-
 
|-
 
| 4
 
| 4
| [[AMNet:GetTitleIDList|TitleIDList]] pointer
+
| Import Title Context Title IDs Input Pointer
 
|-
 
|-
 
| 5
 
| 5
| (TitleList2_Size<<4) <nowiki>|</nowiki> 12
+
| ((Import Title Context Count * 0x18) << 4) <nowiki>|</nowiki> 0xC
 
|-
 
|-
 
| 6
 
| 6
| TitleList2 pointer
+
| [[Application_Manager_Services#ImportTitleContext|Import Title Contexts]] Output Pointer
 
|}
 
|}
  
Line 38: Line 38:
 
| 1
 
| 1
 
| Result code
 
| Result code
|}
 
 
=TitleList2 entry format=
 
{| class="wikitable" border="1"
 
|-
 
!  Offset
 
!  Length
 
!  Description
 
|-
 
| 0x0
 
| 0x8
 
| ?
 
|-
 
| 0x8
 
| 0x2
 
| Title version
 
|-
 
| 0xA
 
| 0x1
 
| Title installation state?
 
|-
 
| 0xB
 
| 0xD
 
| ?
 
|}
 
 
=Title installation states=
 
{| class="wikitable" border="1"
 
|-
 
!  ID
 
!  Description
 
|-
 
| 2
 
| TMD install pending?
 
|-
 
| 3
 
| TMD installed?
 
 
|}
 
|}

Latest revision as of 19:24, 1 July 2022

Request[edit]

Index Word Description
0 Header code [0x000D0084]
1 Import Title Context Count
2 Media Type
3 ((Import Title Context Count * 8) << 4) | 0xA
4 Import Title Context Title IDs Input Pointer
5 ((Import Title Context Count * 0x18) << 4) | 0xC
6 Import Title Contexts Output Pointer

Response[edit]

Index Word Description
0 Header code
1 Result code