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

Method FindById

src/External/CascLib/src/common/FileTree.cpp:541–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541PCASC_FILE_NODE CASC_FILE_TREE::FindById(DWORD FileDataId)
542{
543 PCASC_FILE_NODE * RefElement;
544 PCASC_FILE_NODE pFileNode = NULL;
545
546 if(FileDataId != CASC_INVALID_ID && FileDataIds.IsInitialized())
547 {
548 // Insert the element to the array
549 RefElement = (PCASC_FILE_NODE *)FileDataIds.ItemAt(FileDataId);
550 if(RefElement != NULL)
551 {
552 pFileNode = RefElement[0];
553 }
554 }
555 return pFileNode;
556}
557
558bool CASC_FILE_TREE::SetNodeFileName(PCASC_FILE_NODE pFileNode, const char * szFileName)
559{

Callers 2

SearchMethod · 0.80
GetFileMethod · 0.80

Calls 2

IsInitializedMethod · 0.45
ItemAtMethod · 0.45

Tested by

no test coverage detected