nn::fs::IsSdmcInserted Function

Syntax

bool IsSdmcInserted();

Arguments

None.

Return Values

Returns true if a card is inserted; otherwise, returns false.

Description

Returns a value indicating whether an SD Card has been inserted.

Because this function puts a heavy load on the processor, when waiting for an SD Memory Card insertion or removal event, use an nn::os::LightEvent object registered using the nn::fs::RegisterSdmcInsertedEvent or nn::fs::RegisterSdmcEjectedEvent function.

This function returns true if a damaged SD Card has been inserted or if what is inserted is not an SD Card (for example, an empty SD Card adapter).

Revision History

2010/09/09
Added Description.
2010/08/16
Initial version.

CONFIDENTIAL