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

Function FSDIR_Close

libctru/source/services/fs.c:1852–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1850}
1851
1852Result FSDIR_Close(Handle handle)
1853{
1854 u32 *cmdbuf = getThreadCommandBuffer();
1855
1856 cmdbuf[0] = IPC_MakeHeader(0x802,0,0); // 0x8020000
1857
1858 Result ret = 0;
1859 if(R_FAILED(ret = svcSendSyncRequest(handle))) return ret;
1860
1861 ret = cmdbuf[1];
1862 if(R_SUCCEEDED(ret)) ret = svcCloseHandle(handle);
1863
1864 return ret;
1865}
1866
1867Result FSDIR_SetPriority(Handle handle, u32 priority)
1868{

Callers 3

archive_statFunction · 0.85
archive_chdirFunction · 0.85
archive_dircloseFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected