mirror of
https://github.com/zeldaret/botw
synced 2026-06-07 03:47:57 -04:00
BaseProc::release
This commit is contained in:
committed by
Léo Lam
parent
a49164a85f
commit
da35629aa8
@@ -425,6 +425,11 @@ bool BaseProc::x00000071011ba9fc() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void BaseProc::release() {
|
||||
if (mRefCount >= 1)
|
||||
mRefCount--;
|
||||
}
|
||||
|
||||
BaseProc* BaseProc::getConnectedCalcParent() const {
|
||||
if (mConnectedCalcParent == nullptr || mConnectedCalcParent->mState == State::Delete)
|
||||
return nullptr;
|
||||
|
||||
@@ -282,7 +282,7 @@ protected:
|
||||
sead::ListNode mDeleteListNode;
|
||||
BaseProcMapNode mMapNode{this};
|
||||
BaseProcUnit* mProcUnit = nullptr;
|
||||
sead::Atomic<u32> mRefCount = 0;
|
||||
sead::Atomic<s32> mRefCount = 0;
|
||||
|
||||
private:
|
||||
void unlinkProcUnit_();
|
||||
|
||||
Reference in New Issue
Block a user