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

Function xModelBucket_Deinit

src/SB/Core/x/xModelBucket.cpp:608–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void xModelBucket_Deinit()
609{
610 for (S32 i = 0; i < sBucketCount; i++)
611 {
612 if (sBucketList[i].Data != sBucketList[i].OriginalData)
613 {
614 _rwFrameSyncDirty();
615 RwFrame* tframe = RpAtomicGetFrame(sBucketList[i].Data);
616 if (tframe)
617 {
618 RpAtomicSetFrame(sBucketList[i].Data, NULL);
619 RwFrameDestroy(tframe);
620 }
621 RpAtomicDestroy(sBucketList[i].Data);
622 }
623 }
624 xModelBucket_PreCountReset();
625}

Callers 1

zSceneExitFunction · 0.50

Calls 1

Tested by

no test coverage detected