| 834 | } |
| 835 | |
| 836 | char* 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 | |
| 856 | U32 PKR_GetBaseSector(st_PACKER_READ_DATA* pr) |
| 857 | { |
nothing calls this directly
no test coverage detected