| 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); |
| 84 | if (fd < 0) |
| 85 | return fd; |
| 86 | |
| 87 | int written = sceIoWrite(fd, buf, size); |
| 88 | |
| 89 | sceIoClose(fd); |
| 90 | return written; |
| 91 | } |
| 92 | |
| 93 | int getFileSize(const char *file) { |
| 94 | SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0); |
no outgoing calls
no test coverage detected