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

Function FSFILE_Close

libctru/source/services/fs.c:1748–1761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1746}
1747
1748Result FSFILE_Close(Handle handle)
1749{
1750 u32* cmdbuf = getThreadCommandBuffer();
1751
1752 cmdbuf[0] = IPC_MakeHeader(0x808,0,0); // 0x8080000
1753
1754 Result ret = 0;
1755 if(R_FAILED(ret = svcSendSyncRequest(handle))) return ret;
1756
1757 ret = cmdbuf[1];
1758 if(R_SUCCEEDED(ret)) ret = svcCloseHandle(handle);
1759
1760 return ret;
1761}
1762
1763Result FSFILE_Flush(Handle handle)
1764{

Callers 7

romfs_freeFunction · 0.85
romfsMountFromFileFunction · 0.85
romfsMountSelfFunction · 0.85
archive_openFunction · 0.85
archive_closeFunction · 0.85
archive_statFunction · 0.85
ndspFindAndLoadComponentFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected