Difference between revisions of "FS:CreateExtSaveData"

From 3dbrew
Jump to navigation Jump to search
m (Use common types.)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Media type (NAND / SDMC)
+
| [[Filesystem_services#MediaType|Media Type]]
 
|-
 
|-
| 2
+
| 2-3
| Low word of the saveid
+
| u64, Save ID
|-
 
| 3
 
| High word of the saveid
 
 
|-
 
|-
 
| 4
 
| 4
Line 33: Line 30:
 
|-
 
|-
 
| 9
 
| 9
| Size of the SMDH icon
+
| [[SMDH]] Size
 
|-
 
|-
 
| 10
 
| 10
| (SMDH Size << 4) <nowiki>|</nowiki> 0x0000000A
+
| ([[SMDH]] Size << 4) <nowiki>|</nowiki> 0xA
 
|-
 
|-
 
| 11
 
| 11
| Pointer to the SMDH buffer
+
| [[SMDH]] Data Pointer
 
|}
 
|}
  

Revision as of 22:36, 17 October 2015

Request

Index Word Description
0 Header code [0x08510242]
1 Media Type
2-3 u64, Save ID
4 Unknown
5 Number of directories
6 Number of files
7 Unknown
8 Unknown
9 SMDH Size
10 (SMDH Size << 4) | 0xA
11 SMDH Data Pointer

Response

Index Word Description
0 Header code
1 Result code

Description

This creates the ExtSaveData with the specified saveid in the specified media type. It stores the SMDH as "icon" in the root of the created directory. For more information see Extdata#VSXE_Filesystem_structure