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

Function FSUSER_GetCardType

libctru/source/services/fs.c:455–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455Result FSUSER_GetCardType(FS_CardType* type)
456{
457 u32 *cmdbuf = getThreadCommandBuffer();
458
459 cmdbuf[0] = IPC_MakeHeader(0x813,0,0); // 0x8130000
460
461 Result ret = 0;
462 if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret;
463
464 if(type) *type = cmdbuf[2] & 0xFF;
465
466 return cmdbuf[1];
467}
468
469Result FSUSER_GetSdmcArchiveResource(FS_ArchiveResource* archiveResource)
470{

Callers

nothing calls this directly

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
fsSessionFunction · 0.85

Tested by

no test coverage detected