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

Function PKR_IsAssetReady

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

Source from the content-addressed store, hash-verified

795
796//
797S32 PKR_IsAssetReady(st_PACKER_READ_DATA* pr, U32 aid)
798{
799 S32 ready = false;
800 S32 idx = XOrdLookup(&pr->asstoc, (void*)aid, OrdTest_R_AssetID);
801 if (idx >= 0)
802 {
803 st_PACKER_ATOC_NODE* assnode = (st_PACKER_ATOC_NODE*)pr->asstoc.list[idx];
804 if (assnode->loadflag & 0x80000)
805 {
806 ready = true;
807 }
808 else
809 {
810 ready = false;
811 }
812 }
813
814 return ready;
815}
816
817U32 PKR_getPackTimestamp(st_PACKER_READ_DATA* pr)
818{

Callers

nothing calls this directly

Calls 1

XOrdLookupFunction · 0.70

Tested by

no test coverage detected