Difference between revisions of "AMPXI:ExportDSiWare"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004D0144] |- | 1 | TitleID lower word, for the title to export? |- | 2 | TitleID...")
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
| Header code [0x004D0144]
 
| Header code [0x004D0144]
 
|-
 
|-
| 1
+
| 1-2
| TitleID lower word, for the title to export?
+
| u64, TWL Title ID
|-
 
| 2
 
| TitleID upper word, for the title export?
 
 
|-
 
|-
 
| 3
 
| 3
| Input path buffer size
+
| Path size
 
|-
 
|-
 
| 4
 
| 4
| Size of working buffer, normally this is 0x20000.
+
| Working buffer size (usually 0x20000)
 
|-
 
|-
 
| 5
 
| 5
| Unknown u8, normally this is value 1. This seems to be unused.
+
| u8, DSiWare export type
 
|-
 
|-
 
| 6
 
| 6
| PathSize<<8 <nowiki>|</nowiki> 0x4
+
| (PathSize << 8) <nowiki>|</nowiki> 0x4
 
|-
 
|-
 
| 7
 
| 7
| Input path buffer ptr
+
| Path pointer
 
|-
 
|-
| 6
+
| 8
| WorkBufSize<<8 <nowiki>|</nowiki> 0x14
+
| (WorkingBufferSize << 8) <nowiki>|</nowiki> 0x14
 
|-
 
|-
| 7
+
| 9
| Ptr for the working buffer
+
| Working buffer pointer
 
|}
 
|}
  
Line 43: Line 40:
 
|-
 
|-
 
| 0
 
| 0
| Header code
+
| Header code [0x004D0040]
 
|-
 
|-
 
| 1
 
| 1

Latest revision as of 02:06, 10 January 2016

Request[edit]

Index Word Description
0 Header code [0x004D0144]
1-2 u64, TWL Title ID
3 Path size
4 Working buffer size (usually 0x20000)
5 u8, DSiWare export type
6 (PathSize << 8) | 0x4
7 Path pointer
8 (WorkingBufferSize << 8) | 0x14
9 Working buffer pointer

Response[edit]

Index Word Description
0 Header code [0x004D0040]
1 Result code

Description[edit]

This is used for exporting DSiWare. The UTF-16 input path is normally in the format "sdmc:/Nintendo 3DS/<ID0>/<ID1>/Nintendo DSiWare/<TitleID-Low.bin>", however this can be arbitrary.