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

Function fsInit

libctru/source/services/fs.c:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Result fsInit(void)
39{
40 Result ret = 0;
41
42 if (AtomicPostIncrement(&fsuRefCount)) return 0;
43
44 ret = srvGetServiceHandle(&fsuHandle, "fs:USER");
45 if (R_SUCCEEDED(ret) && envGetHandle("fs:USER") == 0)
46 {
47 ret = FSUSER_Initialize(fsuHandle);
48 if (R_FAILED(ret)) svcCloseHandle(fsuHandle);
49 }
50
51 if (R_FAILED(ret)) AtomicDecrement(&fsuRefCount);
52 return ret;
53}
54
55void fsExit(void)
56{

Callers 1

__appInitFunction · 0.85

Calls 3

srvGetServiceHandleFunction · 0.85
envGetHandleFunction · 0.85
FSUSER_InitializeFunction · 0.85

Tested by

no test coverage detected