#include <nn/save.h> FSStatus SAVEOpenFileOtherDemoApplication( FSClient *client, FSCmdBlock *block, u32 uniqueId, u8 accountSlotNo, const char *path, const char *mode, FSFileHandle *fileHandle, FSRetFlag errHandling ); FSStatus SAVEOpenFileOtherDemoApplicationAsync( FSClient *client, FSCmdBlock *block, u32 uniqueId, u8 accountSlotNo, const char *path, const char *mode, FSFileHandle *fileHandle, FSRetFlag errHandling, const FSAsyncParams *asyncParams );
|client||Pointer to the client buffer.|
|uniqueId||The unique ID of the target.|
|accountSlotNo||The user account slot number.|
|path||Path that specifies the quota. The relative path for the save directory for the specified user account. The length must be less than
Short string parameter that specifies the access mode. The length must be less than
|fileHandle||Pointer to the handle of the file stream associated with the file to open.|
|errHandling||Automatic error handling flag. Only the indicated error is returned.|
|asyncParams||(Async API only) Notification parameters for an asynchronous call.|
||The command was canceled.|
||System has too many file points to create more.|
||The file is already open.
You are trying to open the file illegally.
||Target not found.
The specified user account does not exist on this Wii U console.
||Specified path is not a file.|
||Access mode is invalid (e.g. specified "r+" for read-only media).|
||The caller does not have correct access permission.|
||Journaling space is full and new journaling block cannot be allocated.|
||Data space cannot be allocated.|
||(Only for manually mounted devices) Media is not present.|
||(Only for manually mounted devices) Media is in some inaccessible condition.|
||(Only for manually mounted devices) The data is corrupted beyond repair. The volume needs format.|
||(Only for manually mounted devices) Media is write protected.|
||Successfully issued the request.|
||The specified user account does not exist on this Wii U console.|
||The argument is invalid.|
||The caller does not have the correct access permissions.|
Opens the save data file of other demo application specified in uniqueId and path and creates the file stream associated with that file. The specification of the variation is 0. The position of the file stream is set to the beginning. mode is a short string parameter to specify the access mode.
Both the sync and the async style API functions are provided. To use the async API functions, set the user callback and parameters in asyncParams.
For more information, see
The generated file handle is stored in fileHandle when completed.
The generated file handle is a positive value (>0) if the function succeeds. Otherwise, the handle value is
FS_INVALID_HANDLE_VALUE. The invalid handle value is not necessary to close.
If you plan to run an application that uses these functions in an environment with a USB drive connected, the USB drive must be connected when you start the application and create the save data. If you plan to run the application in an environment without a USB drive connected, the USB drive must be disconnected when you start the application and create the save data.
If you prepare save data using the Save Data Manager menu item in the System Config Tool, note that this function can only access save data that exists in NAND and USB storage, not on the host PC. Also note that to access save data in NAND, the application that uses these functions needs to be launched using either
caferun in an environment that is not connected to a USB drive.
2014/10/22 Revised the return values.
2014/06/04 Added the specifications of the variation to description.
FS_STATUS_JOURNAL_FULL to return values.
2013/05/23 Initial version.