MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getFileIndex

Method getFileIndex

TheForceEngine/TFE_Archive/zipArchive.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196u32 ZipArchive::getFileIndex(const char* file)
197{
198 for (s32 i = 0; i < m_entryCount; i++)
199 {
200 if (strcasecmp(file, m_entries[i].name.c_str()) == 0)
201 {
202 return i;
203 }
204 }
205 return INVALID_FILE;
206}
207
208size_t ZipArchive::getFileLength()
209{

Callers 3

openArchiveFileFunction · 0.45
getFilePathFunction · 0.45
getFilePathFunction · 0.45

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected