Difference between revisions of "AMNet:GetCurrentImportContentContexts"

From 3dbrew
Jump to navigation Jump to search
m
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Total indexes
+
| Import Content Context Count
 
|-
 
|-
 
| 2
 
| 2
| (TotalIndexes<<5) <nowiki>|</nowiki> 10
+
| ((Import Content Context Count * 2) << 4) <nowiki>|</nowiki> 0xA
 
|-
 
|-
 
| 3
 
| 3
| Input content index array pointer
+
| Import Content Context Indices Input Pointer
 
|-
 
|-
 
| 4
 
| 4
| ((TotalIndexes*0x18)<<4) <nowiki>|</nowiki> 12
+
| ((Import Content Context Count * 0x18) << 4) <nowiki>|</nowiki> 0xC
 
|-
 
|-
 
| 5
 
| 5
| Pointer to output content info array
+
| Import Content Contexts Output Pointer
 
|}
 
|}
  
Line 37: Line 37:
 
|}
 
|}
  
=ContentInfo=
+
=Import Content Context=
 
This seems to match [[TMD#Content_chunk_records|TMD content chunk records]].
 
This seems to match [[TMD#Content_chunk_records|TMD content chunk records]].
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 47: Line 47:
 
| 0x0
 
| 0x0
 
| 0x4
 
| 0x4
| ContentID
+
| Content ID
 
|-
 
|-
 
| 0x4
 
| 0x4
 
| 0x2
 
| 0x2
| Content index
+
| Content Index
 
|-
 
|-
 
| 0x6
 
| 0x6
 
| 0x2
 
| 0x2
| Content type
+
| Content Type
 
|-
 
|-
 
| 0x8
 
| 0x8
 
| 0x8
 
| 0x8
| Content size
+
| Content Size
 
|-
 
|-
 
| 0x10
 
| 0x10

Revision as of 20:54, 17 April 2016

Request

Index Word Description
0 Header code [0x08150044]
1 Import Content Context Count
2 ((Import Content Context Count * 2) << 4) | 0xA
3 Import Content Context Indices Input Pointer
4 ((Import Content Context Count * 0x18) << 4) | 0xC
5 Import Content Contexts Output Pointer

Response

Index Word Description
0 Header code
1 Result code

Import Content Context

This seems to match TMD content chunk records.

Offset Length Description
0x0 0x4 Content ID
0x4 0x2 Content Index
0x6 0x2 Content Type
0x8 0x8 Content Size
0x10 0x8 ?