MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / PKR_GetAssetSize

Function PKR_GetAssetSize

src/SB/Core/x/xpkrsvc.cpp:724–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724U32 PKR_GetAssetSize(st_PACKER_READ_DATA* pr, U32 aid)
725{
726 st_PACKER_ATOC_NODE* assnode = NULL;
727 S32 idx = XOrdLookup(&pr->asstoc, (void*)aid, OrdTest_R_AssetID);
728
729 if (idx > -1)
730 {
731 assnode = (st_PACKER_ATOC_NODE*)pr->asstoc.list[idx];
732 }
733
734 if (assnode != NULL)
735 {
736 if (assnode->x_size > 0)
737 {
738 return assnode->x_size;
739 }
740 return assnode->d_size;
741 }
742 return 0;
743}
744
745S32 PKR_AssetCount(st_PACKER_READ_DATA* pr, U32 type)
746{

Callers

nothing calls this directly

Calls 1

XOrdLookupFunction · 0.70

Tested by

no test coverage detected