Difference between revisions of "FS:FormatSaveData"

From 3dbrew
Jump to navigation Jump to search
m (Use common types.)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Archive ID (Only 4 (SaveData) has been observed)
+
| [[Filesystem_services#ArchiveId|Archive ID]] (Only 4 (SaveData) has been observed)
 
|-
 
|-
 
| 2
 
| 2
| LowPath.Type
+
| [[Filesystem_services#PathType|Path Type]]
 
|-
 
|-
 
| 3
 
| 3
| LowPath.Size
+
| Path Size
 
|-
 
|-
 
| 4
 
| 4
Line 36: Line 36:
 
|-
 
|-
 
| 10
 
| 10
| (LowPath.Size << 14) <nowiki>|</nowiki> 2
+
| (PathSize << 14) <nowiki>|</nowiki> 2
 
|-
 
|-
 
| 11
 
| 11
| LowPath.Data ptr
+
| Path Data Pointer
 +
|}
 +
 
 +
=Response=
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Index Word
 +
!  Description
 +
|-
 +
| 0
 +
| Header code
 +
|-
 +
| 1
 +
| Result code
 
|}
 
|}
  
 
=Description=
 
=Description=
 
This clears the SaveData archive for the specified game, if the LowPath.Type is Empty then this will clear the SaveData for the current game. The target SaveData to format is determined by a Binary path, a game needs an exheader permission set in order to format the SaveData of another program.
 
This clears the SaveData archive for the specified game, if the LowPath.Type is Empty then this will clear the SaveData for the current game. The target SaveData to format is determined by a Binary path, a game needs an exheader permission set in order to format the SaveData of another program.

Revision as of 22:35, 17 October 2015

Request

Index Word Description
0 Header code [0x084C0242]
1 Archive ID (Only 4 (SaveData) has been observed)
2 Path Type
3 Path Size
4 u32 "sizeBlock" (size of savedata in blocks?)
5 u32 "countDirectoryEntry"
6 u32 "countFileEntry"
7 u32 "countDirectoryEntryBucket"
8 u32 "countFileEntryBucket"
9 ?
10 (PathSize << 14) | 2
11 Path Data Pointer

Response

Index Word Description
0 Header code
1 Result code

Description

This clears the SaveData archive for the specified game, if the LowPath.Type is Empty then this will clear the SaveData for the current game. The target SaveData to format is determined by a Binary path, a game needs an exheader permission set in order to format the SaveData of another program.