2.1 Using the Save Data of Other Applications
When accessing the save data of other applications, the error codes returned when an error occurs may differ from the error codes returned when accessing your own application's save data.
Therefore, you must implement the following error handling when accessing the save data of other applications.
- When nn::fs::ResultNotFound is returned:
Inform the user that the save data being accessed may not have been created properly.
Example message: "Cannot find save data for (application being accessed). Please check whether the save data for (application being accessed) was created properly."
- When an unexpected error is returned:
Do not process it as a fatal error, but inform the user that access to the save data failed.
If any of the above errors occurs, cancel the accessing of that save data. As long as you correctly handle the error first, it is acceptable to remount the save data later.
If your application accesses the save data for other applications in response to a user operation, you must notify the user that the application will access this other save data. If the application accesses such save data automatically, notifying the user is optional.
See the "Save Data Archives (Other Programs)" section in the Function Reference Manual for details on error handling.
File System
Save Data
Save Data of Other Applications
Error Handling
nn::fs::ResultNotFound