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

Function PKR_AssetName

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

Source from the content-addressed store, hash-verified

834}
835
836char* PKR_AssetName(st_PACKER_READ_DATA* pr, U32 aid)
837{
838 char* name = NULL;
839
840 if (aid == 0)
841 {
842 return NULL;
843 }
844 else
845 {
846 S32 idx = XOrdLookup(&pr->asstoc, (void*)aid, OrdTest_R_AssetID);
847 if (idx >= 0)
848 {
849 name = ((st_PACKER_ATOC_NODE*)pr->asstoc.list[idx])->Name();
850 }
851 }
852
853 return name;
854}
855
856U32 PKR_GetBaseSector(st_PACKER_READ_DATA* pr)
857{

Callers

nothing calls this directly

Calls 2

XOrdLookupFunction · 0.70
NameMethod · 0.45

Tested by

no test coverage detected