| 136 | } |
| 137 | |
| 138 | static LPTSTR CreateIndexFileName(TCascStorage * hs, DWORD IndexValue, DWORD IndexVersion) |
| 139 | { |
| 140 | TCHAR szPlainName[0x40]; |
| 141 | |
| 142 | // Sanity checks |
| 143 | assert(hs->szIndexFormat != NULL); |
| 144 | assert(hs->szIndexPath != NULL); |
| 145 | assert(IndexValue <= 0x0F); |
| 146 | |
| 147 | // Create the plain name of the index file |
| 148 | CascStrPrintf(szPlainName, _countof(szPlainName), hs->szIndexFormat, IndexValue, IndexVersion); |
| 149 | |
| 150 | // Allocate path |
| 151 | return CASC_PATH<TCHAR>(hs->szIndexPath, szPlainName, NULL).New(); |
| 152 | } |
| 153 | |
| 154 | static void SaveFileOffsetBitsAndEKeyLength(TCascStorage * hs, BYTE FileOffsetBits, BYTE EKeyLength) |
| 155 | { |
no test coverage detected