| 220 | } |
| 221 | |
| 222 | int 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 | |
| 235 | static int writeEntry(SceUID fd, ConfigEntry *entry) { |
| 236 | if (!entry->value) |
no test coverage detected