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

Function FSUSER_GetSdmcCid

libctru/source/services/fs.c:539–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539Result FSUSER_GetSdmcCid(u8* out, u32 length)
540{
541 u32 *cmdbuf = getThreadCommandBuffer();
542
543 cmdbuf[0] = IPC_MakeHeader(0x819,1,2); // 0x8190042
544 cmdbuf[1] = length;
545 cmdbuf[2] = IPC_Desc_Buffer(length, IPC_BUFFER_W);
546 cmdbuf[3] = (u32) out;
547
548 Result ret = 0;
549 if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret;
550
551 return cmdbuf[1];
552}
553
554Result FSUSER_GetNandCid(u8* out, u32 length)
555{

Callers

nothing calls this directly

Calls 4

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_BufferFunction · 0.85
fsSessionFunction · 0.85

Tested by

no test coverage detected