| 53 | // ********************************************************************************* |
| 54 | |
| 55 | static void CleanupResources(FILE* index_file, FILE* data_file, ArchiveIndexContainer* archive) |
| 56 | { |
| 57 | if (index_file) |
| 58 | { |
| 59 | fclose(index_file); |
| 60 | } |
| 61 | |
| 62 | if (data_file) |
| 63 | { |
| 64 | fclose(data_file); |
| 65 | } |
| 66 | |
| 67 | if (archive) |
| 68 | { |
| 69 | if (archive->m_ArchiveIndex) |
| 70 | { |
| 71 | delete archive->m_ArchiveIndex; |
| 72 | } |
| 73 | |
| 74 | delete archive; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | Result LoadArchiveFromFile(const char* index_file_path, const char* data_file_path, HArchiveIndexContainer* archive) |
| 79 | { |
no outgoing calls
no test coverage detected