| 832 | } |
| 833 | |
| 834 | int archiveFileClose(SceUID fd) { |
| 835 | if (is_psarc) |
| 836 | return psarcFileClose(fd); |
| 837 | |
| 838 | if (!archive_fd || fd != ARCHIVE_FD) |
| 839 | return -1; |
| 840 | |
| 841 | archive_read_free(archive_fd); |
| 842 | archive_fd = NULL; |
| 843 | |
| 844 | return 0; |
| 845 | } |
| 846 | |
| 847 | int ReadArchiveFile(const char *file, void *buf, int size) { |
| 848 | SceUID fd = archiveFileOpen(file, SCE_O_RDONLY, 0); |
no test coverage detected