| 69 | } |
| 70 | |
| 71 | int ReadFile(const char *file, void *buf, int size) { |
| 72 | SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0); |
| 73 | if (fd < 0) |
| 74 | return fd; |
| 75 | |
| 76 | int read = sceIoRead(fd, buf, size); |
| 77 | |
| 78 | sceIoClose(fd); |
| 79 | return read; |
| 80 | } |
| 81 | |
| 82 | int WriteFile(const char *file, const void *buf, int size) { |
| 83 | SceUID fd = sceIoOpen(file, SCE_O_WRONLY | SCE_O_CREAT | SCE_O_TRUNC, 0777); |
no outgoing calls
no test coverage detected