MCPcopy Create free account
hub / github.com/devkitPro/libctru / FSUSER_IsSdmcWritable

Function FSUSER_IsSdmcWritable

libctru/source/services/fs.c:525–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525Result FSUSER_IsSdmcWritable(bool *writable)
526{
527 u32 *cmdbuf = getThreadCommandBuffer();
528
529 cmdbuf[0] = IPC_MakeHeader(0x818,0,0); // 0x8180000
530
531 Result ret = 0;
532 if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret;
533
534 if(writable) *writable = cmdbuf[2] & 0xFF;
535
536 return cmdbuf[1];
537}
538
539Result FSUSER_GetSdmcCid(u8* out, u32 length)
540{

Callers 1

sdmc_statvfsFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
fsSessionFunction · 0.85

Tested by

no test coverage detected