MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / CreateIndexFileName

Function CreateIndexFileName

src/External/CascLib/src/CascIndexFiles.cpp:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static 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
154static void SaveFileOffsetBitsAndEKeyLength(TCascStorage * hs, BYTE FileOffsetBits, BYTE EKeyLength)
155{

Callers 1

LoadLocalIndexFilesFunction · 0.85

Calls 2

CascStrPrintfFunction · 0.85
NewMethod · 0.45

Tested by

no test coverage detected