MCPcopy Create free account
hub / github.com/doldecomp/mkdd / popSection

Method popSection

libs/JSystem/JAudio/Utility/JAUSectionHeap.cpp:638–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638bool JAUSectionHeap::popSection()
639{
640 if(getNumSections() <= 1)
641 return false;
642
643 JSULink<JAUSection> *lastLink = sectionList_.getLast();
644 JAUSection *section = lastLink->getObject();
645
646 section->disposeUserDisposers_();
647
648 if (!section->releaseSeqData_())
649 return false;
650
651 if (!section->isDisposable_())
652 return false;
653
654 if (sectionList_.remove(lastLink))
655 {
656 section->releaseAllBank_();
657 u32 tag = getNumSections();
658#line 810
659 JUT_ASSERT(tag >= 1);
660 heap_->restoreState(tag);
661 return true;
662 }
663
664 return false;
665}
666
667JAUSection *JAUSectionHeap::getSection(int no)
668{

Callers

nothing calls this directly

Calls 8

disposeUserDisposers_Method · 0.80
releaseSeqData_Method · 0.80
isDisposable_Method · 0.80
releaseAllBank_Method · 0.80
restoreStateMethod · 0.80
getLastMethod · 0.45
getObjectMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected