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

Function FSUSER_CloseArchive

libctru/source/services/fs.c:423–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423Result FSUSER_CloseArchive(FS_Archive archive)
424{
425 if(!archive) return -2;
426
427 u32 *cmdbuf = getThreadCommandBuffer();
428
429 cmdbuf[0] = IPC_MakeHeader(0x80E,2,0); // 0x80E0080
430 cmdbuf[1] = (u32) archive;
431 cmdbuf[2] = (u32) (archive >> 32);
432
433 Result ret = 0;
434 if(R_FAILED(ret = svcSendSyncRequest(fsSessionForArchive(archive)))) return ret;
435
436 return cmdbuf[1];
437}
438
439Result FSUSER_GetFreeBytes(u64* freeBytes, FS_Archive archive)
440{

Callers 2

_archiveMountDeviceFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
fsSessionForArchiveFunction · 0.85

Tested by

no test coverage detected