nn::fs::GetSdmcSize FunctionResult GetSdmcSize( s64 * pTotal, s64 * pFree );
| Name | Description | |
|---|---|---|
| out | pTotal | Returns the total SD Card capacity. |
| out | pFree | Returns the amount of free space on the SD Card. |
| Value | Description |
|---|---|
| Success. | Process was successful. The return value's IsSuccess function returns true in this state. |
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.
The Function Reference for CTR-SDK 0.14.16 and prior versions stated that this function returns the errors ResultMediaNotFound, ResultMediaAccessError, and ResultBadFormat. Actually, the function only returns the error ResultNotFound.
This function will return 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 nn::fs::MountSdmc or nn::fs::MountExtSaveData.
Result to only be ResultNotFound.CONFIDENTIAL