MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / readConfig

Function readConfig

config.c:222–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222int readConfig(const char *path, ConfigEntry *entries, int n_entries) {
223 void *buffer = NULL;
224 int size = allocateReadFile(path, &buffer);
225 if (size < 0)
226 return size;
227
228 readConfigBuffer(buffer, size, entries, n_entries);
229
230 free(buffer);
231
232 return 0;
233}
234
235static int writeEntry(SceUID fd, ConfigEntry *entry) {
236 if (!entry->value)

Callers 4

loadLanguageFunction · 0.85
loadSettingsConfigFunction · 0.85
openSettingsMenuFunction · 0.85
loadThemeFunction · 0.85

Calls 2

allocateReadFileFunction · 0.85
readConfigBufferFunction · 0.85

Tested by

no test coverage detected