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

Function FSUSER_GetFreeBytes

libctru/source/services/fs.c:439–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439Result FSUSER_GetFreeBytes(u64* freeBytes, FS_Archive archive)
440{
441 u32 *cmdbuf = getThreadCommandBuffer();
442
443 cmdbuf[0] = IPC_MakeHeader(0x812,2,0); // 0x8120080
444 cmdbuf[1] = (u32) archive;
445 cmdbuf[2] = (u32) (archive >> 32);
446
447 Result ret = 0;
448 if(R_FAILED(ret = svcSendSyncRequest(fsSessionForArchive(archive)))) return ret;
449
450 if(freeBytes) *freeBytes = cmdbuf[2] | ((u64) cmdbuf[3] << 32);
451
452 return cmdbuf[1];
453}
454
455Result FSUSER_GetCardType(FS_CardType* type)
456{

Callers

nothing calls this directly

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
fsSessionForArchiveFunction · 0.85

Tested by

no test coverage detected