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

Function FSUSER_GetSdmcFatfsError

libctru/source/services/fs.c:497–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497Result FSUSER_GetSdmcFatfsError(u32* error)
498{
499 u32 *cmdbuf = getThreadCommandBuffer();
500
501 cmdbuf[0] = IPC_MakeHeader(0x816,0,0); // 0x8160000
502
503 Result ret = 0;
504 if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret;
505
506 if(error) *error = cmdbuf[2];
507
508 return cmdbuf[1];
509}
510
511Result FSUSER_IsSdmcDetected(bool *detected)
512{

Callers

nothing calls this directly

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
fsSessionFunction · 0.85

Tested by

no test coverage detected