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

Function FSUSER_Initialize

libctru/source/services/fs.c:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150Result FSUSER_Initialize(Handle session)
151{
152 u32 *cmdbuf = getThreadCommandBuffer();
153
154 cmdbuf[0] = IPC_MakeHeader(0x801,0,2); // 0x8010002
155 cmdbuf[1] = IPC_Desc_CurProcessId();
156
157 Result ret = 0;
158 if(R_FAILED(ret = svcSendSyncRequest(session))) return ret;
159
160 return cmdbuf[1];
161}
162
163Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes)
164{

Callers 1

fsInitFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_CurProcessIdFunction · 0.85

Tested by

no test coverage detected