nn::fs::GetSdmcSize Function| Name | Description | |
|---|---|---|
| out | pTotal | Returns the total SD Card capacity. |
| out | pFree | Returns the amount of free space on the SD Card. |
| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultNotFound |
An SD Card could not be found or recognized. This error will also be returned if an SD Card is inserted but the file system on the card cannot be accessed. |
| A value other than the above. | An application bug or some other unexpected error. |
Gets the total capacity and amount of free space on an SD Card.
ResultMediaNotFound, ResultMediaAccessError, and ResultBadFormat. The actual error returned by the function is only ResultNotFound.ResultNotFound if it is called when there is no SD Card as well as when there is no archive mounted on the SD Card. This is a limitation of this function. To avoid this limitation, call this function after first calling either the nn::fs::MountSdmc, nn::fs::MountSdmcWriteOnly or nn::fs::MountExtSaveData function.Result to only be ResultNotFound.CONFIDENTIAL