nn::fs::CreateExtSaveData Function

Syntax

Result CreateExtSaveData(
     nn::fs::ExtSaveDataId id,
     const void * iconData,
     size_t iconDataSize,
     u32 entryDirectory,
     u32 entryFile
);

Arguments

Name Description
in id Specifies the ID of the expanded save data.
in iconData Specifies icon data.
in iconDataSize Specifies the size of the icon data.
in entryDirectory Specifies the number of directories to be stored in this expanded save data region.
in entryFile Specifies the number of files to be stored in this expanded save data region.

Return Values

Returns the result of the operation.

Description

Creates an expanded save data memory region.

Creates an expanded save data region corresponding to the ID. Use the expanded save data number specified in the RSF file as an argument indicating the expanded save data ID.

Before calling this function, you must call MountExtSaveData and check if a memory region with this same ID has already been created. To only format the region, call DeleteExtSaveData to delete, and then call this function.

For the icon data, specify the icn file output by the ctr_makebanner32 tool.

Unless you re-create extended save data, writes cannot exceed the specified number of directories, number of files, or data size. Be very careful during extended use.

You cannot change the size of files created in expanded save data memory. Consequently, you cannot create files using functions such as FileStream::TryInitialize. When creating files, use TryCreateFile, for which you can specify the file size.

Revision History

2010/11/09
Initial version.

CONFIDENTIAL