nn::fs::Unmount FunctionResult Unmount( const char * archiveName );
| Name | Description | |
|---|---|---|
| in | archiveName | Specifies the archive name. |
| Value | Description |
|---|---|
| Success. | Process was successful. The return value's IsSuccess function returns true in this state. |
ResultNotFound |
The specified archive has not been mounted. You must not allow this error to occur in retail products. |
| A value other than the above. | An application bug or some other unexpected error. |
Unmounts an archive.
Call this function to unmount a region when a mounted archive is no longer necessary.
If you have enabled automatic redundancy for save data, do not forget to call the CommitSaveData function before unmounting.
Before you unmount an archive, call Finalize on all files and directories that open from it. If you have written to a file without calling Flush, do not forget to call Flush when you close the file.
Finalize for files and directories during unmount operations.
CONFIDENTIAL