| 845 | } |
| 846 | |
| 847 | int ReadArchiveFile(const char *file, void *buf, int size) { |
| 848 | SceUID fd = archiveFileOpen(file, SCE_O_RDONLY, 0); |
| 849 | if (fd < 0) |
| 850 | return fd; |
| 851 | |
| 852 | int read = archiveFileRead(fd, buf, size); |
| 853 | archiveFileClose(fd); |
| 854 | return read; |
| 855 | } |
| 856 | |
| 857 | int archiveNeedPassword() { |
| 858 | return need_password; |
no test coverage detected