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

Function xSTGetAssetInfo

src/SB/Core/x/xstransvc.cpp:338–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338S32 xSTGetAssetInfo(U32 aid, st_PKR_ASSET_TOCINFO* tocainfo)
339{
340 S32 rc = 0;
341 S32 scncnt = XST_cnt_locked();
342 for (S32 i = 0; i < scncnt; i++)
343 {
344 st_STRAN_SCENE* sdata = XST_nth_locked(i);
345 if (g_pkrf->PkgHasAsset(sdata->spkg, aid) != NULL)
346 {
347 g_pkrf->GetBaseSector(sdata->spkg);
348 if (g_pkrf->GetAssetInfo(sdata->spkg, aid, tocainfo))
349 {
350 rc = 1;
351 break;
352 }
353 }
354 }
355 return rc;
356}
357
358// Equivalent: scheduling is off with the copy of tocinfo to ainfo
359S32 xSTGetAssetInfoByType(U32 type, S32 idx, st_PKR_ASSET_TOCINFO* ainfo)

Callers 4

xSFXPlayFunction · 0.70
zCameraFlyStartFunction · 0.50
parse_tag_soundFunction · 0.50
iCSFileOpenFunction · 0.50

Calls 2

XST_cnt_lockedFunction · 0.85
XST_nth_lockedFunction · 0.85

Tested by

no test coverage detected